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
b54817e7
Commit
b54817e7
authored
Sep 15, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
3c979803
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
wcfs/internal/zdata/δftail.go
wcfs/internal/zdata/δftail.go
+9
-9
No files found.
wcfs/internal/zdata/δftail.go
View file @
b54817e7
...
@@ -224,24 +224,24 @@ func (δFtail *ΔFtail) Track(file *ZBigFile, blk int64, path []btree.LONode, zb
...
@@ -224,24 +224,24 @@ func (δFtail *ΔFtail) Track(file *ZBigFile, blk int64, path []btree.LONode, zb
}
}
δFtail
.
δBtail
.
Track
(
blk
,
path
)
δFtail
.
δBtail
.
Track
(
blk
,
path
)
root
:=
path
[
0
]
.
(
*
btree
.
LOBTree
)
root
Obj
:=
path
[
0
]
.
(
*
btree
.
LOBTree
)
ro
id
:=
root
.
POid
()
ro
ot
:=
rootObj
.
POid
()
files
,
ok
:=
δFtail
.
fileIdx
[
ro
id
]
files
,
ok
:=
δFtail
.
fileIdx
[
ro
ot
]
if
!
ok
{
if
!
ok
{
files
=
setOid
{}
files
=
setOid
{}
δFtail
.
fileIdx
[
ro
id
]
=
files
δFtail
.
fileIdx
[
ro
ot
]
=
files
}
}
files
.
Add
(
foid
)
files
.
Add
(
foid
)
δftail
,
ok
:=
δFtail
.
byFile
[
foid
]
δftail
,
ok
:=
δFtail
.
byFile
[
foid
]
if
!
ok
{
if
!
ok
{
δftail
=
&
_ΔFileTail
{
root
:
ro
id
,
vδE
:
nil
/*will need to be rebuilt to past till tail*/
}
δftail
=
&
_ΔFileTail
{
root
:
ro
ot
,
vδE
:
nil
/*will need to be rebuilt to past till tail*/
}
δFtail
.
byFile
[
foid
]
=
δftail
δFtail
.
byFile
[
foid
]
=
δftail
δFtail
.
trackNew
.
Add
(
foid
)
δFtail
.
trackNew
.
Add
(
foid
)
}
}
if
δftail
.
root
!=
ro
id
{
if
δftail
.
root
!=
ro
ot
{
// .root can change during epochs, but in between them it must be stable
// .root can change during epochs, but in between them it must be stable
panicf
(
"BUG: zfile<%s> root mutated from %s -> %s"
,
foid
,
δftail
.
root
,
ro
id
)
panicf
(
"BUG: zfile<%s> root mutated from %s -> %s"
,
foid
,
δftail
.
root
,
ro
ot
)
}
}
...
@@ -254,13 +254,13 @@ func (δFtail *ΔFtail) Track(file *ZBigFile, blk int64, path []btree.LONode, zb
...
@@ -254,13 +254,13 @@ func (δFtail *ΔFtail) Track(file *ZBigFile, blk int64, path []btree.LONode, zb
δFtail
.
trackSetZBlk
[
zoid
]
=
zt
δFtail
.
trackSetZBlk
[
zoid
]
=
zt
}
}
inblk
,
ok
:=
zt
.
inroot
[
ro
id
]
inblk
,
ok
:=
zt
.
inroot
[
ro
ot
]
if
!
ok
{
if
!
ok
{
inblk
=
make
(
setI64
,
1
)
inblk
=
make
(
setI64
,
1
)
if
zt
.
inroot
==
nil
{
if
zt
.
inroot
==
nil
{
zt
.
inroot
=
make
(
map
[
zodb
.
Oid
]
setI64
)
zt
.
inroot
=
make
(
map
[
zodb
.
Oid
]
setI64
)
}
}
zt
.
inroot
[
ro
id
]
=
inblk
zt
.
inroot
[
ro
ot
]
=
inblk
}
}
inblk
.
Add
(
blk
)
inblk
.
Add
(
blk
)
}
}
...
...
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