From 2eb8b98f8f42a7c2e0dcab1cb8f39753c1ba9561 Mon Sep 17 00:00:00 2001 From: Vassilii Khachaturov Date: Mon, 4 Nov 2013 09:25:40 +0000 Subject: [PATCH] 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 --- src/gen/db/write.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gen/db/write.py b/src/gen/db/write.py index d76dd28a0..eb668bc28 100644 --- a/src/gen/db/write.py +++ b/src/gen/db/write.py @@ -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)