6194: add debugging to track the bug

Note that reflist is not an iterable but a flat list, so the added
debugging doesn't drain any delayed computations...

svn: r23449
This commit is contained in:
Vassilii Khachaturov 2013-11-04 09:25:40 +00:00
parent 59470368d3
commit 2eb8b98f8f

View File

@ -1028,7 +1028,10 @@ class DbBsddb(DbBsddbRead, DbWriteBase, UpdateCallback):
# Once we have the list of rows that already have a reference
# we need to compare it with the list of objects that are
# still references from the primary object.
current_references = set(obj.get_referenced_handles_recursively())
reflist = obj.get_referenced_handles_recursively()
LOG.debug("handle: {0}, reflist: {1}".format(
handle, reflist))
current_references = set(reflist)
no_longer_required_references = existing_references.difference(
current_references)
new_references = current_references.difference(existing_references)