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
f53573a2
Commit
f53573a2
authored
May 10, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
7b144106
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
wcfs/wcfs.go
wcfs/wcfs.go
+1
-0
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+2
-1
No files found.
wcfs/wcfs.go
View file @
f53573a2
...
@@ -123,6 +123,7 @@
...
@@ -123,6 +123,7 @@
// changes:
// changes:
//
//
// S: <2·k> pin <bigfileX> #<blk> @<rev_max>
// S: <2·k> pin <bigfileX> #<blk> @<rev_max>
// XXX @head means unpin.
//
//
// and waits until all clients confirm that changed file block can be updated
// and waits until all clients confirm that changed file block can be updated
// in global OS cache.
// in global OS cache.
...
...
wcfs/wcfs_test.py
View file @
f53573a2
...
@@ -720,7 +720,8 @@ def watch(w, zf, at): # XXX -> ?
...
@@ -720,7 +720,8 @@ def watch(w, zf, at): # XXX -> ?
def
_expectPin
(
w
,
ctx
,
zf
,
expect
):
def
_expectPin
(
w
,
ctx
,
zf
,
expect
):
expected
=
set
()
# of expected pin messages
expected
=
set
()
# of expected pin messages
for
blk
,
at
in
expect
.
items
():
for
blk
,
at
in
expect
.
items
():
msg
=
b"pin %s #%d @%s"
%
(
h
(
zf
.
_p_oid
),
blk
,
h
(
at
))
hat
=
h
(
at
)
if
at
is
not
None
else
'head'
msg
=
b"pin %s #%d @%s"
%
(
h
(
zf
.
_p_oid
),
blk
,
hat
)
assert
msg
not
in
expected
assert
msg
not
in
expected
expected
.
add
(
msg
)
expected
.
add
(
msg
)
...
...
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