dbcheck: don't remove dangling one-way links on already deleted objects
commit7402d9cfcf77f188cef488c4d1f47b0c1900564b
authorStefan Metzmacher <metze@samba.org>
Mon, 25 Feb 2019 14:35:22 +0000 (25 15:35 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 28 Mar 2019 08:35:21 +0000 (28 08:35 +0000)
tree847161e212c4a752bbf499bd9395e8757a4b9165
parent07ebd654a0169d94d7471fa94bb813fe971f7ae8
dbcheck: don't remove dangling one-way links on already deleted objects

This would typically happen when the garbage collection
removed a parent object before a child object (both with
the DISALLOW_MOVE_ON_DELETE bit set in systemFlags),
while dbcheck is running at the same time as the garbage collection.
In this case the lastKnownParent attributes points a non existing
object.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13816

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit e388e599495b6d7c38b8b6966332e27f8b958783)
python/samba/dbchecker.py
selftest/knownfail.d/dbcheck-list-deleted [deleted file]
source4/selftest/provisions/release-4-5-0-pre1/expected-dbcheck-link-output-lost-deleted-user1.txt