Commit 3d59da73 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent bcacc442
...@@ -202,7 +202,7 @@ def TreesSrv(zstor, r): ...@@ -202,7 +202,7 @@ def TreesSrv(zstor, r):
treetxtPrev = zctx.ztreetxt(ztree) treetxtPrev = zctx.ztreetxt(ztree)
for treetxt in xreadlines(r): for treetxt in xreadlines(r):
# mark tree as changed if the same topology is requested twice # mark tree 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 ztree._p_changed = True
...@@ -232,7 +232,7 @@ def TreesSrv(zstor, r): ...@@ -232,7 +232,7 @@ def TreesSrv(zstor, r):
# commit tree to storage # commit tree to storage
head = commit("treegen/tree: %s" % treetxt) head = commit("treegen/tree: %s" % treetxt)
# verify what was persisted to storage is indeed what we intended # verify what was persisted to storage is indeed what we wanted to persist
zctx.zconn.cacheMinimize() zctx.zconn.cacheMinimize()
treetxt_onstor = zctx.ztreetxt(ztree) treetxt_onstor = zctx.ztreetxt(ztree)
if treetxt_onstor != treetxt: if treetxt_onstor != treetxt:
......
...@@ -68,7 +68,7 @@ type TreeSrv struct { ...@@ -68,7 +68,7 @@ type TreeSrv struct {
head zodb.Tid // last made commit head zodb.Tid // last made commit
} }
// AllStructsSrv represents connection to running `treegen allstructs.srv` server. // AllStructsSrv represents connection to running `treegen allstructs` server.
// //
// Create it with StartAllStructsSrv(). // Create it with StartAllStructsSrv().
// - AllStructs(maxdepth, maxsplit, n, seed, kv1, kv2) // - AllStructs(maxdepth, maxsplit, n, seed, kv1, kv2)
...@@ -163,11 +163,11 @@ func StartTreeSrv(zurl string) (_ *TreeSrv, err error) { ...@@ -163,11 +163,11 @@ func StartTreeSrv(zurl string) (_ *TreeSrv, err error) {
return tg, nil return tg, nil
} }
// StartAllStructsSrv spawns `treegen allstructs.srv` server. // StartAllStructsSrv spawns `treegen allstructs` server.
func StartAllStructsSrv() (_ *AllStructsSrv, err error) { func StartAllStructsSrv() (_ *AllStructsSrv, err error) {
defer xerr.Context(&err, "allstructs.srv: start") defer xerr.Context(&err, "allstructs.srv: start")
tgSrv, hello, err := StartTreeGenSrv("allstructs.srv") tgSrv, hello, err := StartTreeGenSrv("allstructs")
if err != nil { if err != nil {
return nil, err return nil, err
} }
......
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