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

.

parent bcacc442
......@@ -202,7 +202,7 @@ def TreesSrv(zstor, r):
treetxtPrev = zctx.ztreetxt(ztree)
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
if treetxt == treetxtPrev:
ztree._p_changed = True
......@@ -232,7 +232,7 @@ def TreesSrv(zstor, r):
# commit tree to storage
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()
treetxt_onstor = zctx.ztreetxt(ztree)
if treetxt_onstor != treetxt:
......
......@@ -68,7 +68,7 @@ type TreeSrv struct {
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().
// - AllStructs(maxdepth, maxsplit, n, seed, kv1, kv2)
......@@ -163,11 +163,11 @@ func StartTreeSrv(zurl string) (_ *TreeSrv, err error) {
return tg, nil
}
// StartAllStructsSrv spawns `treegen allstructs.srv` server.
// StartAllStructsSrv spawns `treegen allstructs` server.
func StartAllStructsSrv() (_ *AllStructsSrv, err error) {
defer xerr.Context(&err, "allstructs.srv: start")
tgSrv, hello, err := StartTreeGenSrv("allstructs.srv")
tgSrv, hello, err := StartTreeGenSrv("allstructs")
if err != nil {
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