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
e6ce8953
Commit
e6ce8953
authored
Jul 17, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
f459bda0
Changes
2
Hide 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):
...
@@ -186,6 +186,7 @@ def _pinner(wconn, ctx):
defer
(
_
)
defer
(
_
)
def
trace
(
msg
):
def
trace
(
msg
):
return
print
(
'pinner: %s'
%
msg
)
print
(
'pinner: %s'
%
msg
)
trace
(
'start'
)
trace
(
'start'
)
while
1
:
while
1
:
...
@@ -211,6 +212,7 @@ def _pin1(wconn, req):
...
@@ -211,6 +212,7 @@ def _pin1(wconn, req):
defer
(
_
)
defer
(
_
)
def
trace
(
msg
):
def
trace
(
msg
):
return
print
(
'pin1: %s'
%
msg
)
print
(
'pin1: %s'
%
msg
)
trace
(
'lock _filemu ...'
)
trace
(
'lock _filemu ...'
)
...
...
wcfs/wcfs_test.py
View file @
e6ce8953
...
@@ -1758,22 +1758,26 @@ def test_wcfspy_virtmem():
...
@@ -1758,22 +1758,26 @@ def test_wcfspy_virtmem():
tm1
.
assertBlk
(
4
,
''
)
tm1
.
assertBlk
(
4
,
''
)
assert
f
.
pinned
==
{
2
:
at1
}
assert
f
.
pinned
==
{
2
:
at1
}
at3
=
t
.
commit
(
zf
,
{
3
:
'd3'
})
at3
=
t
.
commit
(
zf
,
{
3
:
'd3'
,
4
:
'e3'
})
assert
f
.
pinned
==
{
2
:
at1
}
assert
f
.
pinned
==
{
2
:
at1
}
tm1
.
assertBlk
(
3
,
'd1'
)
tm1
.
assertBlk
(
3
,
'd1'
)
assert
f
.
pinned
==
{
2
:
at1
,
3
:
at1
}
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
# resync at1 -> at2: #2 must unpin to @head
wconn
.
resync
(
at2
)
wconn
.
resync
(
at2
)
assert
f
.
pinned
==
{
3
:
at1
}
assert
f
.
pinned
==
{
3
:
at1
}
tm1
.
assertBlk
(
2
,
'c2'
)
tm1
.
assertBlk
(
2
,
'c2'
)
tm1
.
assertBlk
(
3
,
'd1'
)
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
)
wconn
.
resync
(
at3
)
assert
f
.
pinned
==
{}
assert
f
.
pinned
==
{}
tm1
.
assertBlk
(
2
,
'c2'
)
tm1
.
assertBlk
(
2
,
'c2'
)
tm1
.
assertBlk
(
3
,
'd3'
)
tm1
.
assertBlk
(
3
,
'd3'
)
tm1
.
assertBlk
(
4
,
'e3'
)
# XXX resync ↓ ?
# 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