dbcheck: don't move already deleted objects to LostAndFound
authorStefan Metzmacher <metze@samba.org>
Mon, 25 Feb 2019 14:35:22 +0000 (15:35 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 28 Mar 2019 12:19:12 +0000 (12:19 +0000)
commit0fd3f38c1cfa717c1e9a2d320030ee29102e5005
treeb23ad225a9d8f387f6bec4ee60a5ae06b0cf9fe1
parentac900c23b5bc2fa8fe1bbb0b6f195fcd43ec491f
dbcheck: don't move already deleted objects to LostAndFound

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.

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 6d50ee74920c39cdb18b427bfaaf200775bf2d73)
python/samba/dbchecker.py
selftest/knownfail.d/dbcheck-list-deleted
source4/selftest/provisions/release-4-5-0-pre1/expected-dbcheck-link-output-lost-deleted-user1.txt