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
70c8c3e0
Commit
70c8c3e0
authored
Jul 16, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
b2c44675
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
wcfs/internal/zdata/δftail.go
wcfs/internal/zdata/δftail.go
+1
-8
No files found.
wcfs/internal/zdata/δftail.go
View file @
70c8c3e0
...
@@ -83,10 +83,8 @@ type ΔFtail struct {
...
@@ -83,10 +83,8 @@ type ΔFtail struct {
// ΔFtail merges ΔBtail with history of ZBlk
// ΔFtail merges ΔBtail with history of ZBlk
δBtail
*
xbtree
.
ΔBtail
δBtail
*
xbtree
.
ΔBtail
fileIdx
map
[
zodb
.
Oid
]
setOid
// tree-root -> {} ZBigFile<oid> as of @head XXX -> root2file ?
fileIdx
map
[
zodb
.
Oid
]
setOid
// tree-root -> {} ZBigFile<oid> as of @head XXX -> root2file ?
// rootIdx map[zodb.Oid]zodb.Oid // file -> tree-root as of @head
byFile
map
[
zodb
.
Oid
]
*
_ΔFileTail
// file -> δf tail XXX
byFile
map
[
zodb
.
Oid
]
*
_ΔFileTail
// file -> δf tail XXX
// trackSetZFile setOid // set of tracked ZBigFiles as of @head
trackSetZBlk
map
[
zodb
.
Oid
]
*
zblkTrack
// zblk -> {} root -> {}blk as of @head
trackSetZBlk
map
[
zodb
.
Oid
]
*
zblkTrack
// zblk -> {} root -> {}blk as of @head
}
}
...
@@ -135,8 +133,6 @@ func NewΔFtail(at0 zodb.Tid, db *zodb.DB) *ΔFtail {
...
@@ -135,8 +133,6 @@ func NewΔFtail(at0 zodb.Tid, db *zodb.DB) *ΔFtail {
return
&
ΔFtail
{
return
&
ΔFtail
{
δBtail
:
xbtree
.
NewΔBtail
(
at0
,
db
),
δBtail
:
xbtree
.
NewΔBtail
(
at0
,
db
),
fileIdx
:
map
[
zodb
.
Oid
]
setOid
{},
fileIdx
:
map
[
zodb
.
Oid
]
setOid
{},
// rootIdx: map[zodb.Oid]zodb.Oid{},
// trackSetZFile: setOid{},
byFile
:
map
[
zodb
.
Oid
]
*
_ΔFileTail
{},
byFile
:
map
[
zodb
.
Oid
]
*
_ΔFileTail
{},
trackSetZBlk
:
map
[
zodb
.
Oid
]
*
zblkTrack
{},
trackSetZBlk
:
map
[
zodb
.
Oid
]
*
zblkTrack
{},
}
}
...
@@ -191,8 +187,6 @@ func (δFtail *ΔFtail) Track(file *ZBigFile, blk int64, path []btree.LONode, zb
...
@@ -191,8 +187,6 @@ func (δFtail *ΔFtail) Track(file *ZBigFile, blk int64, path []btree.LONode, zb
}
}
// δFtail.trackSetZFile.Add(foid)
// associate zblk with file, if it was not hole
// associate zblk with file, if it was not hole
if
zblk
!=
nil
{
if
zblk
!=
nil
{
zoid
:=
zblk
.
POid
()
zoid
:=
zblk
.
POid
()
...
@@ -362,7 +356,6 @@ func (δFtail *ΔFtail) Update(δZ *zodb.EventCommit) (_ ΔF, err error) {
...
@@ -362,7 +356,6 @@ func (δFtail *ΔFtail) Update(δZ *zodb.EventCommit) (_ ΔF, err error) {
//fmt.Printf("δZBigFile: %v\n", δ)
//fmt.Printf("δZBigFile: %v\n", δ)
// XXX update .fileIdx
// XXX update .fileIdx
// XXX update .rootIdx
// XXX update .trackSetZBlk ?
// XXX update .trackSetZBlk ?
}
}
...
@@ -472,7 +465,7 @@ func (δFtail *ΔFtail) SliceByFileRev(zfile *ZBigFile, lo, hi zodb.Tid) /*reado
...
@@ -472,7 +465,7 @@ func (δFtail *ΔFtail) SliceByFileRev(zfile *ZBigFile, lo, hi zodb.Tid) /*reado
// state of Zinblk as we are scanning ←
// state of Zinblk as we are scanning ←
// initially corresponds to @head = vδT[-1]
// initially corresponds to @head = vδT[-1]
Zinblk
:=
map
[
zodb
.
Oid
]
setI64
{}
// zblk -> which #blk refer to it
Zinblk
:=
map
[
zodb
.
Oid
]
setI64
{}
// zblk -> which #blk refer
s
to it
var
ZinblkAt
zodb
.
Tid
// Zinblk covers [ZinblkAt,<next δT>)
var
ZinblkAt
zodb
.
Tid
// Zinblk covers [ZinblkAt,<next δT>)
for
zblk
,
zt
:=
range
δFtail
.
trackSetZBlk
{
for
zblk
,
zt
:=
range
δFtail
.
trackSetZBlk
{
inblk
,
ok
:=
zt
.
inroot
[
root
]
inblk
,
ok
:=
zt
.
inroot
[
root
]
...
...
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