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
5796829c
Commit
5796829c
authored
Jun 01, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
77c54f64
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
wcfs/δbtail.go
wcfs/δbtail.go
+2
-0
wcfs/δbtail_test.go
wcfs/δbtail_test.go
+2
-2
No files found.
wcfs/δbtail.go
View file @
5796829c
...
...
@@ -39,6 +39,8 @@ type Key = int64
type
Value
=
zodb
.
Oid
// XXX assumes key points to IPersistent
// XXX how to represent deletion? InvalidOid?
type
SetKey
=
SetI64
// ΔBtail represents tail of revisional changes to BTrees.
//
// It semantically consists of
...
...
wcfs/δbtail_test.go
View file @
5796829c
...
...
@@ -312,7 +312,7 @@ func TestΔBTail(t *testing.T) {
}
*/
// direct tree_i -> tree_{i+1}
// direct tree_i -> tree_{i+1}
-> _{i+2} ... plus reverse ... tree_i <- _{i+1} <- _{i+2}
at1
:=
tg
.
head
kv1
:=
XGetTree
(
db
,
at1
,
tg
.
treeRoot
)
for
_
,
tree
:=
range
testv
{
...
...
@@ -387,7 +387,7 @@ type kvdelta1 struct {
}
func
kvdiff
(
kv1
,
kv2
map
[
Key
]
string
)
[]
kvdelta1
{
delta
:=
[]
kvdelta1
{}
keys
:=
Set
I64
{}
keys
:=
Set
Key
{}
for
k
:=
range
kv1
{
keys
.
Add
(
k
)
}
for
k
:=
range
kv2
{
keys
.
Add
(
k
)
}
keyv
:=
[]
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