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
6b1e072b
Commit
6b1e072b
authored
Jun 18, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
b29f0fbc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
wcfs/δbtail.go
wcfs/δbtail.go
+6
-0
wcfs/δbtail_test.go
wcfs/δbtail_test.go
+2
-2
No files found.
wcfs/δbtail.go
View file @
6b1e072b
...
...
@@ -242,6 +242,9 @@ func (δBtail *ΔBtail) Update(δZ *zodb.EventCommit) (_ ΔB, err error) {
δBtail
.
δZtail
.
Append
(
δZ
.
Tid
,
δZ
.
Changev
)
fmt
.
Printf
(
"
\n
Update δZ: %v
\n
"
,
δZ
.
Changev
)
fmt
.
Printf
(
"trackIdx: %v
\n
"
,
δBtail
.
trackIdx
)
// {} root -> {oid} changed under that root in tracked set
δZByRoot
:=
map
[
zodb
.
Oid
]
SetOid
{}
for
_
,
oid
:=
range
δZ
.
Changev
{
...
...
@@ -258,6 +261,7 @@ func (δBtail *ΔBtail) Update(δZ *zodb.EventCommit) (_ ΔB, err error) {
δZT
.
Add
(
oid
)
}
}
fmt
.
Println
(
"δZByRoot:"
,
δZByRoot
)
δB
:=
ΔB
{
Rev
:
δZ
.
Tid
,
ByRoot
:
make
(
map
[
zodb
.
Oid
]
map
[
Key
]
Value
)}
...
...
@@ -319,6 +323,8 @@ func (δBtail *ΔBtail) treediff(ctx context.Context, root zodb.Oid, δZT SetOid
defer
xerr
.
Contextf
(
&
err
,
"treediff %s..%s %s"
,
zconnOld
.
At
(),
zconnNew
.
At
(),
root
)
// XXX zconnX -> a, b ?
fmt
.
Printf
(
"treediff %s δZT: %v
\n
"
,
root
,
δZT
)
δT
=
map
[
Key
]
Value
{}
for
oid
:=
range
δZT
{
...
...
wcfs/δbtail_test.go
View file @
6b1e072b
...
...
@@ -510,8 +510,8 @@ func xverifyΔBTail1(t *testing.T, subj string, db *zodb.DB, treeRoot zodb.Oid,
emsg
+=
strings
.
Join
(
badv
,
"
\n
"
)
emsg
+=
"
\n
"
t
.
Error
(
emsg
)
//
t.Fatal(emsg)
//
t.Error(emsg)
t
.
Fatal
(
emsg
)
}
}()
...
...
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