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
6d7c2bcc
Commit
6d7c2bcc
authored
Apr 19, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
6cb712f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
wcfs/δbtail.go
wcfs/δbtail.go
+1
-2
No files found.
wcfs/δbtail.go
View file @
6d7c2bcc
...
@@ -1390,7 +1390,7 @@ func (δBtail *ΔBtail) Get(ctx context.Context, root *Tree, key Key, at zodb.Ti
...
@@ -1390,7 +1390,7 @@ func (δBtail *ΔBtail) Get(ctx context.Context, root *Tree, key Key, at zodb.Ti
}
}
// key not in history tail.
// key not in history tail.
// either use @tail[key], if it is present, or @head[key]
FIXME tail[key] must be present
// either use @tail[key], if it is present, or @head[key]
rev
=
δBtail
.
Tail
()
rev
=
δBtail
.
Tail
()
revExact
=
false
revExact
=
false
value
,
ok
=
δTtail
.
KVAtTail
[
key
]
value
,
ok
=
δTtail
.
KVAtTail
[
key
]
...
@@ -1398,7 +1398,6 @@ func (δBtail *ΔBtail) Get(ctx context.Context, root *Tree, key Key, at zodb.Ti
...
@@ -1398,7 +1398,6 @@ func (δBtail *ΔBtail) Get(ctx context.Context, root *Tree, key Key, at zodb.Ti
return
return
}
}
// FIXME this should go away (tail[key] must be present)
// @tail[key] is not present - key was not changing in (tail, head].
// @tail[key] is not present - key was not changing in (tail, head].
// since at ∈ (tail, head] we can use @head[key] as the result
// since at ∈ (tail, head] we can use @head[key] as the result
xvalue
,
ok
,
err
:=
root
.
Get
(
ctx
,
key
)
xvalue
,
ok
,
err
:=
root
.
Get
(
ctx
,
key
)
...
...
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