Changeset 540


Ignore:
Timestamp:
12/06/13 14:54:04 (11 years ago)
Author:
Kris Deugau
Message:

/trunk

Make sure changes made by compact-recs.pl actually get published, by
setting the "changed" flag on the relevant zone(s)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/compact-recs.pl

    r528 r540  
    120120    $dbh->do("INSERT INTO records (domain_id, rdns_id, host, type, val, ttl, location) VALUES (?,?,?,?,?,?,?)",
    121121        undef, ($dparent, $zone, $patt, $newtype, $cidr, $soa->{minttl}, $ploc) );
     122    $dbh->do("UPDATE revzones SET changed='y' WHERE rdns_id = ?", undef, ($zone));
     123    $dbh->do("UPDATE domains SET changed='y' WHERE domain_id = ?", undef, ($dparent)) if $dparent;
    122124    $dnsdb->_log(rdns_id => $zone, domain_id => $dparent, group_id => 1,
    123125        entry => "A+PTR and/or PTR records in $cidr matching $patt replaced by $typemap{$newtype} record for $cidr");
Note: See TracChangeset for help on using the changeset viewer.