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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
e6ce8953
Commit
e6ce8953
authored
Jul 17, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
f459bda0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
wcfs/__init__.py
wcfs/__init__.py
+2
-0
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+6
-2
No files found.
wcfs/__init__.py
View file @
e6ce8953
...
...
@@ -186,6 +186,7 @@ def _pinner(wconn, ctx):
defer
(
_
)
def
trace
(
msg
):
return
print
(
'pinner: %s'
%
msg
)
trace
(
'start'
)
while
1
:
...
...
@@ -211,6 +212,7 @@ def _pin1(wconn, req):
defer
(
_
)
def
trace
(
msg
):
return
print
(
'pin1: %s'
%
msg
)
trace
(
'lock _filemu ...'
)
...
...
wcfs/wcfs_test.py
View file @
e6ce8953
...
...
@@ -1758,22 +1758,26 @@ def test_wcfspy_virtmem():
tm1
.
assertBlk
(
4
,
''
)
assert
f
.
pinned
==
{
2
:
at1
}
at3
=
t
.
commit
(
zf
,
{
3
:
'd3'
})
at3
=
t
.
commit
(
zf
,
{
3
:
'd3'
,
4
:
'e3'
})
assert
f
.
pinned
==
{
2
:
at1
}
tm1
.
assertBlk
(
3
,
'd1'
)
assert
f
.
pinned
==
{
2
:
at1
,
3
:
at1
}
tm1
.
assertBlk
(
4
,
''
)
assert
f
.
pinned
==
{
2
:
at1
,
3
:
at1
}
# resync at1 -> at2: #2 must unpin to @head
wconn
.
resync
(
at2
)
assert
f
.
pinned
==
{
3
:
at1
}
tm1
.
assertBlk
(
2
,
'c2'
)
tm1
.
assertBlk
(
3
,
'd1'
)
tm1
.
assertBlk
(
3
,
''
)
# resync at2 -> at3: #3 must unpin to @head
# resync at2 -> at3: #3 must unpin to @head
; #4 - start to read with data
wconn
.
resync
(
at3
)
assert
f
.
pinned
==
{}
tm1
.
assertBlk
(
2
,
'c2'
)
tm1
.
assertBlk
(
3
,
'd3'
)
tm1
.
assertBlk
(
4
,
'e3'
)
# XXX resync ↓ ?
...
...
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