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
7944dd1e
Commit
7944dd1e
authored
Apr 13, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
5858d246
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
wcfs/testdata/zblk_test_gen.py
wcfs/testdata/zblk_test_gen.py
+2
-2
wcfs/zblk_test.go
wcfs/zblk_test.go
+2
-2
wcfs/ztestdata_zblk_test.go
wcfs/ztestdata_zblk_test.go
+1
-1
No files found.
wcfs/testdata/zblk_test_gen.py
View file @
7944dd1e
...
...
@@ -54,8 +54,8 @@ def main2():
# head and tail are 128K because if smaller, z1.chunktab would serialize without buckets.
z1ht
=
128
*
K
z1
.
setblkdata
(
brange32
(
z1ht
)
+
bzeros
(
zf
.
blksize
-
2
*
z1ht
)
+
breverse
(
brange32
(
z1ht
)))
zf
.
blktab
[
0
]
=
z0
zf
.
blktab
[
1
]
=
z1
zf
.
blktab
[
1
]
=
z0
zf
.
blktab
[
3
]
=
z1
# make sure there is at least one bucket in z1's chunktab
#
...
...
wcfs/zblk_test.go
View file @
7944dd1e
...
...
@@ -99,12 +99,12 @@ func TestZBlk(t *testing.T) {
t
.
Fatalf
(
"zf: blksize=%d; want %d"
,
zf
.
blksize
,
zf_blksize
)
}
z0_
,
ok
,
err
:=
zf
.
blktab
.
Get
(
ctx
,
0
);
X
(
err
)
z0_
,
ok
,
err
:=
zf
.
blktab
.
Get
(
ctx
,
1
);
X
(
err
)
if
!
(
ok
&&
z0_
==
z0
)
{
t
.
Fatalf
(
"zf: [0] -> %#v; want z0"
,
z0_
)
}
z1_
,
ok
,
err
:=
zf
.
blktab
.
Get
(
ctx
,
1
);
X
(
err
)
z1_
,
ok
,
err
:=
zf
.
blktab
.
Get
(
ctx
,
3
);
X
(
err
)
if
!
(
ok
&&
z1_
==
z1
)
{
t
.
Fatalf
(
"zf: [1] -> %#v; want z1"
,
z1_
)
}
...
...
wcfs/ztestdata_zblk_test.go
View file @
7944dd1e
...
...
@@ -4,7 +4,7 @@ package main
import
"lab.nexedi.com/kirr/neo/go/zodb"
const
zf_blksize
=
2097152
const
zf_size
=
4194304
const
zf_size
=
8388608
const
z0_oid
=
zodb
.
Oid
(
2
)
const
z1_oid
=
zodb
.
Oid
(
3
)
const
zf_oid
=
zodb
.
Oid
(
1
)
...
...
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