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
35ce1704
Commit
35ce1704
authored
Sep 13, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
24b68c60
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
wcfs/internal/zdata/δftail_test.go
wcfs/internal/zdata/δftail_test.go
+4
-5
No files found.
wcfs/internal/zdata/δftail_test.go
View file @
35ce1704
...
@@ -260,14 +260,14 @@ func testΔFtail(t_ *testing.T, testq chan ΔFTestEntry) {
...
@@ -260,14 +260,14 @@ func testΔFtail(t_ *testing.T, testq chan ΔFTestEntry) {
// start tracking zfile[-∞,∞) from the beginning
// start tracking zfile[-∞,∞) from the beginning
// this should make ΔFtail to see all zfile changes
// this should make ΔFtail to see all zfile changes
// ( later retrack should be called after new epoch to track zfile[-∞,∞) again )
// ( later retrack
All
should be called after new epoch to track zfile[-∞,∞) again )
retrack
:=
func
()
{
retrack
All
:=
func
()
{
for
blk
:=
range
blkTab
{
for
blk
:=
range
blkTab
{
_
,
path
,
zblk
,
_
,
err
:=
zfile
.
LoadBlk
(
ctx
,
blk
);
X
(
err
)
_
,
path
,
zblk
,
_
,
err
:=
zfile
.
LoadBlk
(
ctx
,
blk
);
X
(
err
)
δFtail
.
Track
(
zfile
,
blk
,
path
,
zblk
)
δFtail
.
Track
(
zfile
,
blk
,
path
,
zblk
)
}
}
}
}
retrack
()
retrack
All
()
i
:=
1
// matches t1
i
:=
1
// matches t1
...
@@ -459,7 +459,7 @@ func testΔFtail(t_ *testing.T, testq chan ΔFTestEntry) {
...
@@ -459,7 +459,7 @@ func testΔFtail(t_ *testing.T, testq chan ΔFTestEntry) {
// track whole zfile again if new epoch was started
// track whole zfile again if new epoch was started
if
newEpoch
{
if
newEpoch
{
retrack
()
retrack
All
()
}
}
// verify δFtail.trackSetZBlk
// verify δFtail.trackSetZBlk
...
@@ -623,7 +623,6 @@ func TestΔFtailSliceUntrackedUniform(t_ *testing.T) {
...
@@ -623,7 +623,6 @@ func TestΔFtailSliceUntrackedUniform(t_ *testing.T) {
zconn
,
err
:=
t
.
DB
.
Open
(
ctx
,
&
zodb
.
ConnOptions
{
At
:
t
.
Head
()
.
At
});
X
(
err
)
zconn
,
err
:=
t
.
DB
.
Open
(
ctx
,
&
zodb
.
ConnOptions
{
At
:
t
.
Head
()
.
At
});
X
(
err
)
zfile
,
_
:=
t
.
XLoadZFile
(
ctx
,
zconn
)
zfile
,
_
:=
t
.
XLoadZFile
(
ctx
,
zconn
)
// XXX dup
xtrackBlk
:=
func
(
blk
int64
)
{
xtrackBlk
:=
func
(
blk
int64
)
{
_
,
path
,
zblk
,
_
,
err
:=
zfile
.
LoadBlk
(
ctx
,
blk
);
X
(
err
)
_
,
path
,
zblk
,
_
,
err
:=
zfile
.
LoadBlk
(
ctx
,
blk
);
X
(
err
)
δFtail
.
Track
(
zfile
,
blk
,
path
,
zblk
)
δFtail
.
Track
(
zfile
,
blk
,
path
,
zblk
)
...
...
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