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
71067eb7
Commit
71067eb7
authored
Oct 08, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
9bf88606
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
wcfs/internal/xbtree/δbtail.go
wcfs/internal/xbtree/δbtail.go
+5
-3
No files found.
wcfs/internal/xbtree/δbtail.go
View file @
71067eb7
...
@@ -62,10 +62,11 @@ package xbtree
...
@@ -62,10 +62,11 @@ package xbtree
//
//
// Queries are relatively straightforward code that work on vδT snapshot. The
// Queries are relatively straightforward code that work on vδT snapshot. The
// main complexity, besides BTree-diff algorithm, lies in recomputing vδT when
// main complexity, besides BTree-diff algorithm, lies in recomputing vδT when
// set of tracked keys changes. XXX and in concurrency
// set of tracked keys changes and in handling that recomputation in such a way
// that multiple Track and queries requests could be all served in parallel.
//
//
//
//
//
XXX c
oncurrency
//
C
oncurrency
//
//
// trackSet, ktrackNew, krebuildJobs + explain rebuild algo (query lock, check ktrackNew, krebuildJob, go/merge/...)
// trackSet, ktrackNew, krebuildJobs + explain rebuild algo (query lock, check ktrackNew, krebuildJob, go/merge/...)
//
//
...
@@ -373,7 +374,8 @@ func nodePathToPath(nodePath []Node) (path []zodb.Oid) {
...
@@ -373,7 +374,8 @@ func nodePathToPath(nodePath []Node) (path []zodb.Oid) {
}
}
func
(
δBtail
*
ΔBtail
)
track
(
path
[]
zodb
.
Oid
,
keycov
KeyRange
)
{
func
(
δBtail
*
ΔBtail
)
track
(
path
[]
zodb
.
Oid
,
keycov
KeyRange
)
{
// XXX locking
δBtail
.
mu
.
Lock
()
// TODO verify that there is no in-progress writers
defer
δBtail
.
mu
.
Unlock
()
if
traceΔBtail
{
if
traceΔBtail
{
pathv
:=
[]
string
{}
pathv
:=
[]
string
{}
...
...
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