dbcheck: Do not regard old one-way-links as errors
authorAndrew Bartlett <abartlet@samba.org>
Thu, 2 Feb 2017 03:27:35 +0000 (16:27 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 13 Feb 2017 02:39:23 +0000 (03:39 +0100)
commit35bfc62a31c9ad73449594ddd48f76f50e0abade
treead4ec4af58e7018086214426f1356ab014dc3fce
parent77b37e937299224eb0750be1f4b1cb487c6c0070
dbcheck: Do not regard old one-way-links as errors

Samba does not maintain one way links when the target is deleted or renamed
so do not fail dbcheck because of such links, but allow them to be updated.

This matters because administrators and make test expect that normal Samba
operation do NOT cause the database to become corrupt, and any error from
dbcheck tends to trigger alarms (or test failures).

If an object pointed at by a one way link is renamed or deleted in normal
operations (such as intersiteTopologyGenerator pointing at a demoted DC),
or make test, then this could trigger.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12577
python/samba/dbchecker.py
testprogs/blackbox/renamedc.sh