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
ad889d0b
Commit
ad889d0b
authored
Nov 26, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
6906344b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
wcfs/internal/_wcfs.pyx
wcfs/internal/_wcfs.pyx
+7
-2
wcfs/internal/wcfs_watchlink.cpp
wcfs/internal/wcfs_watchlink.cpp
+1
-1
wcfs/internal/wcfs_watchlink.h
wcfs/internal/wcfs_watchlink.h
+2
-0
No files found.
wcfs/internal/_wcfs.pyx
View file @
ad889d0b
...
...
@@ -23,11 +23,10 @@
# XXX doc
from
golang
cimport
error
,
refptr
from
golang
cimport
string
,
error
,
refptr
from
golang
cimport
context
from
libcpp
cimport
nullptr_t
,
nullptr
as
nil
from
libcpp.string
cimport
string
from
libcpp.utility
cimport
pair
cdef
extern
from
*
:
ctypedef
bint
cbool
"bool"
...
...
@@ -64,6 +63,7 @@ cdef extern from "wcfs_watchlink.h" nogil:
Oid
foid
int64_t
blk
Tid
at
string
msg
cdef
extern
from
"wcfs.h"
nogil
:
...
...
@@ -152,6 +152,11 @@ cdef class PyPinReq:
return
None
return
at
# XXX -> tid bytes
# wcfs_test.py uses req.msg in several places
property
msg
:
def
__get__
(
PyPinReq
pypin
):
return
pypin
.
pinreq
.
msg
# ---- misc ----
...
...
wcfs/internal/wcfs_watchlink.cpp
View file @
ad889d0b
...
...
@@ -319,7 +319,6 @@ error _WatchLink::recvReq(context::Context ctx, PinReq *prx) {
if
(
!
ok
)
return
io
::
EOF_
;
//pkt.to_string();
return
_parsePinReq
(
prx
,
&
pkt
);
}
...
...
@@ -329,6 +328,7 @@ static error _parsePinReq(PinReq *pin, const rxPkt *pkt) {
printf
(
"parse pinreq: stream=%lu msg='%s'
\n
"
,
pkt
->
stream
,
&
pkt
->
data
[
0
]);
pin
->
stream
=
pkt
->
stream
;
string
msg
=
pkt
->
to_string
();
pin
->
msg
=
msg
;
printf
(
"'%s'
\n
"
,
msg
.
c_str
());
printf
(
"has_prefix: %i
\n
"
,
strings
::
has_prefix
(
msg
,
"pin "
));
...
...
wcfs/internal/wcfs_watchlink.h
View file @
ad889d0b
...
...
@@ -117,6 +117,8 @@ struct PinReq {
zodb
::
Oid
foid
;
// request is about this file
int64_t
blk
;
// ----//---- about this block
zodb
::
Tid
at
;
// pin to this at; TidHead means unpin to head
string
msg
;
// XXX raw message for tests (TODO kill)
};
...
...
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