Changeset 782 for trunk


Ignore:
Timestamp:
08/13/19 17:49:57 (5 years ago)
Author:
Kris Deugau
Message:

/trunk

Mispatched change for r781 in delRec(), fixed. See #24.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r781 r782  
    49424942  eval {
    49434943    $dbh->do("DELETE FROM "._rectable($defrec,$revrec)." WHERE record_id=?", undef, ($id));
    4944     if ($revrec eq 'y') {
    4945       $dbh->do("UPDATE revzones SET changed = 'y',zserial = ? WHERE rdns_id = ?", undef, (scalar(time), $oldrec->{domain_id}) );
    4946     } else {
    4947       $dbh->do("UPDATE domains SET changed = 'y',zserial = ? WHERE domain_id = ?", undef, (scalar(time), $oldrec->{rdns_id}) );
    4948     }
     4944    _updateserial(%logdata);
    49494945    $self->_log(%logdata);
    49504946    $dbh->commit;
     
    49564952      $logdata{entry} = "Error deleting ".($defrec eq 'y' ? 'default record' : 'record').
    49574953        " '$oldrec->{host} $typemap{$oldrec->{type}} $oldrec->{val}', TTL $oldrec->{ttl} ($msg)";
    4958       _updateserial(%logdata);
    49594954      $self->_log(%logdata);
    49604955      $dbh->commit;
Note: See TracChangeset for help on using the changeset viewer.