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
cdd8f2a5
Commit
cdd8f2a5
authored
Mar 20, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
47e453f7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
wcfs/wcfs.go
wcfs/wcfs.go
+6
-0
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+4
-4
No files found.
wcfs/wcfs.go
View file @
cdd8f2a5
...
...
@@ -1558,6 +1558,11 @@ func main() {
rev
:
0
,
zconn
:
zhead
,
}
watch
:=
&
Watch
{
fsNode
:
newFSNode
(
fSticky
),
}
bfdir
:=
&
BigFileDir
{
fsNode
:
newFSNode
(
fSticky
),
head
:
head
,
...
...
@@ -1609,6 +1614,7 @@ func main() {
mkdir
(
root
,
"head"
,
head
)
mkdir
(
head
,
"bigfile"
,
bfdir
)
mkfile
(
head
,
"at"
,
NewSmallFile
(
head
.
readAt
))
// TODO mtime(at) = tidtime(at)
mkfile
(
head
,
"watch"
,
watch
)
// for debugging/testing
_wcfs
:=
newFSNode
(
fSticky
)
...
...
wcfs/wcfs_test.py
View file @
cdd8f2a5
...
...
@@ -32,9 +32,9 @@ import transaction
from
persistent
import
Persistent
from
persistent.timestamp
import
TimeStamp
import
os
,
os
.
path
,
subprocess
import
os
,
os
.
path
,
subprocess
,
threading
from
errno
import
EINVAL
from
golang
import
func
,
defer
from
golang
import
go
,
chan
,
func
,
defer
from
zodbtools.util
import
ashex
as
h
,
fromhex
from
pytest
import
raises
from
.internal
import
mm
...
...
@@ -482,12 +482,12 @@ class tSrvReq:
def
reply
(
req
,
answer
):
t
=
req
.
twatch
with
t
.
_mu
:
assert
stream
in
t
.
_accepted
assert
req
.
stream
in
t
.
_accepted
t
.
_send
(
req
.
stream
,
answer
)
with
t
.
_mu
:
assert
stream
in
t
.
_accepted
assert
req
.
stream
in
t
.
_accepted
t
.
_accepted
.
delete
(
req
.
stream
)
# XXX also track as answered? (and don't accept with the same ID ?)
...
...
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