Changeset 873


Ignore:
Timestamp:
May 11, 2016, 6:24:04 PM (7 years ago)
Author:
Kris Deugau
Message:

/trunk

Clean up dnsavail entries on deallocation of a master block. See #1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/IPDB.pm

    r872 r873  
    30223022      $dbh->do("DELETE FROM allocations WHERE cidr <<= ? AND master_id = ?", undef, ($cidr, $binfo->{master_id}) );
    30233023      $dbh->do("DELETE FROM freeblocks WHERE cidr <<= ? AND master_id = ?", undef, ($cidr, $binfo->{master_id}) );
     3024      $dbh->do("DELETE FROM dnsavail WHERE location = ? AND parent_alloc = ?", undef,
     3025          ($binfo->{location}, $binfo->{master_id}) );
    30243026      $dbh->do("DELETE FROM backuplist WHERE backup_id = ?", undef, $binfo->{hasbk})
    30253027          if $binfo->{hasbk};
Note: See TracChangeset for help on using the changeset viewer.