Commit 8021205e authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 057ec71c
......@@ -162,11 +162,10 @@ def Trees(zstor, r):
break # EOF
treetxt = treetxt.rstrip() # trim trailing \n
# skip changing DB if the same topology is requested twice
# (this avoids assert in commit that len(resources) == 1)
# mark tree as changed if the same topology is requested twice
# (this makes sure we can actually make a non-empty commit)
if treetxt == treetxtPrev:
xprint("%s" % ashex(head))
continue
ztree._p_changed = True
treetxtPrev = treetxt
tree = zctx.TopoDecode(treetxt)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment