mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
s4:dns_server: loudly warn when a tombstone record has other records
This shouldn't happen -- that is, there should never be non-tombstone records in conjunction with a tombstone record -- and if it does, the situation should resolve itself here. But the flow is confusing and strange things sometimes happen often enough that it would be helpful to know if this ever occurs. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
78658eee76
commit
ffdd9ddeae
@ -1034,6 +1034,11 @@ WERROR dns_common_replace(struct ldb_context *samdb,
|
||||
* record.
|
||||
*/
|
||||
if (records[i].data.EntombedTime != 0) {
|
||||
if (rec_count != 1) {
|
||||
DBG_ERR("tombstone record has %u neighbour "
|
||||
"records.\n",
|
||||
rec_count - 1);
|
||||
}
|
||||
was_tombstoned = true;
|
||||
}
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user