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
8403564c
Commit
8403564c
authored
Jun 19, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
ec7b9c09
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
wcfs/δbtail.go
wcfs/δbtail.go
+4
-4
No files found.
wcfs/δbtail.go
View file @
8403564c
...
...
@@ -366,7 +366,7 @@ func (δBtail *ΔBtail) treediff(ctx context.Context, root zodb.Oid, δZT SetOid
//
// δZTC is connected set of objects covering δZT (objects changed in this tree in old..new).
//
// a/b can be
=
nil; a=nil means addition, b=nil means deletion.
// a/b can be nil; a=nil means addition, b=nil means deletion.
func
diffX
(
ctx
context
.
Context
,
a
,
b
Node
,
δZTC
SetOid
)
(
δ
map
[
Key
]
Value
,
err
error
)
{
if
a
==
nil
&&
b
==
nil
{
panic
(
"BUG: both a & b == nil"
)
...
...
@@ -379,14 +379,14 @@ func diffX(ctx context.Context, a, b Node, δZTC SetOid) (δ map[Key]Value, err
if
a
!=
nil
{
aT
,
isT
=
a
.
(
*
Tree
)
aB
,
_
=
a
.
(
*
Bucket
)
if
(
aT
==
nil
&&
aB
==
nil
)
{
if
aT
==
nil
&&
aB
==
nil
{
panicf
(
"a: bad type %T"
,
a
)
}
}
if
b
!=
nil
{
bT
,
isT
=
b
.
(
*
Tree
)
bB
,
_
=
b
.
(
*
Bucket
)
if
(
bT
==
nil
&&
bB
==
nil
)
{
if
bT
==
nil
&&
bB
==
nil
{
panicf
(
"b: bad type %T"
,
b
)
}
}
...
...
@@ -553,7 +553,7 @@ func diffB(ctx context.Context, a, b *Bucket) (δ map[Key]Value, err error) {
return
δ
,
nil
}
// zgetNode returns btree node corresponding to zconn.Get(oid)
// zgetNode returns btree node corresponding to zconn.Get(oid)
.
func
zgetNode
(
ctx
context
.
Context
,
zconn
*
zodb
.
Connection
,
oid
zodb
.
Oid
)
(
_
Node
,
err
error
)
{
defer
xerr
.
Contextf
(
&
err
,
"getnode %s@%s"
,
oid
,
zconn
.
At
())
xnode
,
err
:=
zconn
.
Get
(
ctx
,
oid
)
...
...
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