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
688a7527
Commit
688a7527
authored
Jun 19, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
fc5deb55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
wcfs/δbtail.go
wcfs/δbtail.go
+9
-0
No files found.
wcfs/δbtail.go
View file @
688a7527
...
...
@@ -167,6 +167,7 @@ func NewΔBtail(at0 zodb.Tid, db *zodb.DB) *ΔBtail {
δZtail
:
zodb
.
NewΔTail
(
at0
),
byRoot
:
make
(
map
[
zodb
.
Oid
]
*
ΔTtail
),
trackIdx
:
make
(
map
[
zodb
.
Oid
]
SetOid
),
tkdel
:
SetKey
{},
db
:
db
,
}
}
...
...
@@ -236,6 +237,14 @@ func (δBtail *ΔBtail) Track(key Key, keyPresent bool, path []Node, flags Track
δBtail
.
byRoot
[
root
]
=
newΔTtail
()
}
if
!
keyPresent
{
δBtail
.
tkdel
.
Add
(
key
)
}
else
{
if
δBtail
.
tkdel
.
Has
(
key
)
{
panicf
(
"[%v] was previously tracked as ø"
,
key
)
}
}
// XXX update diff XXX here? or as separate step?
// XXX update lastRevOf
}
...
...
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