dbcheck: add find_missing_forward_links_from_backlinks()
commitd59f201388e8a16688adda145734dab8e27b785f
authorRalph Boehme <slow@samba.org>
Thu, 25 Jan 2018 13:48:55 +0000 (25 14:48 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 5 Feb 2018 12:49:13 +0000 (5 13:49 +0100)
tree211014c6382885cc6b0d9c570f91bc162a11ce28
parent182fb3c4c9db8715d0dbcbc3d1aa0655b5cb29f1
dbcheck: add find_missing_forward_links_from_backlinks()

find_missing_forward_links_from_backlinks() finds and returns missing forward-links by
searching all for all objects that link to the object in the backlink attribute.

This will be used in the next commit to restore forward links in a corrupted
forward link attribute by passing the missing backling objects to
err_recover_forward_links().

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

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Signed-off-by: Ralph Boehme <slow@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
python/samba/dbchecker.py