Commit 56d47435 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent c0e34350
...@@ -109,7 +109,11 @@ session example: ...@@ -109,7 +109,11 @@ session example:
# ---- # ----
XXX ΔFtail support ΔFtail support
--------------
XXX
-------- --------
...@@ -202,6 +206,7 @@ def TreesSrv(zstor, r): ...@@ -202,6 +206,7 @@ def TreesSrv(zstor, r):
ztree = zctx.root['treegen/tree'] = LOBTree() ztree = zctx.root['treegen/tree'] = LOBTree()
zfile = zctx.root['treegen/file'] = ZBigFile(blksize=4) # for ΔFtail tests zfile = zctx.root['treegen/file'] = ZBigFile(blksize=4) # for ΔFtail tests
zfile.blktab = ztree zfile.blktab = ztree
zdummy = zctx.root['treegen/dummy'] = PersistentMapping() # anything for ._p_changed=True
head = commit('treegen/tree: init') head = commit('treegen/tree: init')
xprint("tree.srv start @%s root=%s" % (ashex(head), ashex(ztree._p_oid))) xprint("tree.srv start @%s root=%s" % (ashex(head), ashex(ztree._p_oid)))
treetxtPrev = zctx.ztreetxt(ztree) treetxtPrev = zctx.ztreetxt(ztree)
...@@ -243,16 +248,17 @@ def TreesSrv(zstor, r): ...@@ -243,16 +248,17 @@ def TreesSrv(zstor, r):
elif v2 is None: elif v2 is None:
del valdict[k] del valdict[k]
zdummy._p_changed = True # alayws non-empty commit
head = commit(subj) head = commit(subj)
xprint("%s" % ashex(head)) xprint("%s" % ashex(head))
continue continue
# everything else is considerd to be a tree topology # everything else is considerd to be a tree topology
# mark tree as changed if the same topology is requested twice. # mark something as changed if the same topology is requested twice.
# this ensures we can actually make a non-empty commit # this ensures we can actually make a non-empty commit
if treetxt == treetxtPrev: if treetxt == treetxtPrev:
ztree._p_changed = True zdummy._p_changed = True
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