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
d6aae7ec
Commit
d6aae7ec
authored
Oct 08, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
dea85e87
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
13 deletions
+1
-13
wcfs/internal/xbtree/δbtail.go
wcfs/internal/xbtree/δbtail.go
+1
-13
No files found.
wcfs/internal/xbtree/δbtail.go
View file @
d6aae7ec
...
...
@@ -1273,31 +1273,19 @@ func (δBtail *ΔBtail) GetAt(root zodb.Oid, key Key, at zodb.Tid) (value Value,
panicf
(
"at out of bounds: at: @%s, (tail, head] = (@%s, @%s]"
,
at
,
tail
,
head
)
}
// // XXX locking
value
=
VDEL
valueExact
=
false
rev
=
tail
revExact
=
false
// retrieve vδT snapshot that is rebuilt to take Track(key) requests
vδT
,
err
:=
δBtail
.
vδTSnapForTrackedKey
(
root
,
key
)
// // XXX need to rebuild only if key was not rebuilt yet
// // XXX need to rebuild only for key, not for whole trackNew
// err = δBtail.rebuild1KeyIfNeeded(root, key) XXX reenable
// err = δBtail.rebuild1IfNeeded(root)
if
err
!=
nil
{
return
value
,
rev
,
valueExact
,
revExact
,
err
}
debugfΔBtail
(
" vδT: %v
\n
"
,
vδT
)
// δTtail := δBtail.byRoot[root]
// if δTtail == nil {
// panicf("δBtail: root<%s> not tracked", root)
// }
// vδT := δTtail.vδT
// TODO key not tracked -> panic (check key ∈ lastRevOf -- see vvv)
// TODO -> index lastRevOf(key) | linear scan ↓ looking for change ≤ at
for
i
:=
len
(
vδT
)
-
1
;
i
>=
0
;
i
--
{
δT
:=
vδT
[
i
]
...
...
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