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

.

parent 057ec71c
...@@ -162,11 +162,10 @@ def Trees(zstor, r): ...@@ -162,11 +162,10 @@ def Trees(zstor, r):
break # EOF break # EOF
treetxt = treetxt.rstrip() # trim trailing \n treetxt = treetxt.rstrip() # trim trailing \n
# skip changing DB if the same topology is requested twice # mark tree as changed if the same topology is requested twice
# (this avoids assert in commit that len(resources) == 1) # (this makes sure we can actually make a non-empty commit)
if treetxt == treetxtPrev: if treetxt == treetxtPrev:
xprint("%s" % ashex(head)) ztree._p_changed = True
continue
treetxtPrev = treetxt treetxtPrev = treetxt
tree = zctx.TopoDecode(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