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
6cb712f0
Commit
6cb712f0
authored
Apr 19, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
53148c8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
wcfs/δbtail.go
wcfs/δbtail.go
+5
-6
No files found.
wcfs/δbtail.go
View file @
6cb712f0
...
...
@@ -145,6 +145,8 @@ type ΔValue struct {
// .ForgetPast(revCut) - forget changes past revCut
// .SliceByRev(lo, hi) -> []δB - XXX
// .SliceByRootRev(root, lo, hi) -> []δT - XXX
//
// XXX also:
// .Get(root, key, at) - get root[key] @at assuming root[key] ∈ tracked
//
// An example for tracked set is a set of visited BTree paths.
...
...
@@ -1403,15 +1405,12 @@ func (δBtail *ΔBtail) Get(ctx context.Context, root *Tree, key Key, at zodb.Ti
if
err
!=
nil
||
!
ok
{
return
}
v
,
ok
:=
xvalue
.
(
zodb
.
IPersistent
)
if
!
ok
{
err
=
fmt
.
Errorf
(
"got %T; expect ZODB persistent reference"
,
xvalue
)
v
alue
,
err
=
vOid
(
xvalue
)
if
err
!=
nil
{
ok
=
false
return
}
value
=
v
.
POid
()
ok
=
true
return
}
...
...
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