Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
3d59da73
Commit
3d59da73
authored
Jun 05, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
bcacc442
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
wcfs/testprog/treegen.py
wcfs/testprog/treegen.py
+2
-2
wcfs/δbtail_test.go
wcfs/δbtail_test.go
+3
-3
No files found.
wcfs/testprog/treegen.py
View file @
3d59da73
...
...
@@ -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
:
...
...
wcfs/δbtail_test.go
View file @
3d59da73
...
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment