Changeset 605
- Timestamp:
- 04/02/14 15:57:27 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DNSDB.pm
r603 r605 4048 4048 # need to forcibly make sure we disassociate a record with a parent it's no longer related to. 4049 4049 # eg, PTR records may not have a domain parent, or A/AAAA records may not have a revzone parent. 4050 # mainly needed for crossover types that got coerced down to "standard" types 4051 if ($defrec eq 'n') { 4050 # needed for crossover types that got coerced down to "standard" types due to data changes 4051 # need to *avoid* funky records being updated like A/AAAA records in revzones, or PTRs in forward zones. 4052 if ($defrec eq 'n' && $oldrec->{type} > 65000) { 4052 4053 if ($$rectype == $reverse_typemap{PTR}) { 4053 4054 $fields .= ",domain_id"; … … 4060 4061 } 4061 4062 # fix fat-finger-originated record type changes 4062 if ($$rectype == 65285) { 4063 if ($$rectype == 65285) { # delegation 4063 4064 $fields .= ",rdns_id" if $revrec eq 'n'; 4064 4065 $fields .= ",domain_id" if $revrec eq 'y'; 4065 4066 push @vallist, 0; 4066 4067 } 4068 # ... and now make sure we *do* associate a record with the "calling" parent 4067 4069 if ($defrec eq 'n') { 4068 4070 $domid = $parid if $revrec eq 'n';
Note:
See TracChangeset
for help on using the changeset viewer.