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
2576ab4a
Commit
2576ab4a
authored
Oct 22, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
035cce1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+2
-3
No files found.
wcfs/wcfs_test.py
View file @
2576ab4a
...
...
@@ -555,7 +555,6 @@ class tDB(tWCFS):
# _blkheadaccess marks head/zf[blk] accessed.
def
_blkheadaccess
(
t
,
zf
,
blk
):
# XXX locking needed? or we do everything serially?
t
.
_blkaccessed
(
zf
).
add
(
blk
)
# _blkaccessed returns set describing which head/zf blocks were ever accessed.
...
...
@@ -631,7 +630,7 @@ class tFile:
# NOTE with a block completely covered by MADV_RANDOM the kernel
# issues 4K sized reads; wcfs starts uploading into cache almost
# immediately, but the kernel still issues many reads to read the
# full 2MB of the block. This works slow.
# full 2MB of the block. This works slow
ly
.
# XXX -> investigate and maybe make read(while-uploading) wait for
# uploading to complete and only then return? (maybe it will help
# performance even in normal case)
...
...
@@ -702,7 +701,7 @@ class tFile:
# provided pinokByWLink when it is present.
@
func
def
assertBlk
(
t
,
blk
,
dataok
,
pinokByWLink
=
None
):
#
XXX
-> assertCtx('blk #%d' % blk)
#
TODO
-> assertCtx('blk #%d' % blk)
def
_
():
assertCtx
=
'blk #%d'
%
blk
_
,
e
,
_
=
sys
.
exc_info
()
...
...
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