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
2493c259
Commit
2493c259
authored
Oct 21, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
79308111
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
wcfs/wcfs.go
wcfs/wcfs.go
+2
-2
No files found.
wcfs/wcfs.go
View file @
2493c259
...
...
@@ -1754,7 +1754,7 @@ func (wlink *WatchLink) setupWatch(ctx context.Context, foid zodb.Oid, at zodb.T
}
// downgrade atMu.W -> atMu.R to let other clients to access the file.
//
XXX
there is no primitive to do Wlock->Rlock atomically, but we are
//
NOTE
there is no primitive to do Wlock->Rlock atomically, but we are
// ok with that since we prepared everything to handle simultaneous pins
// from other reads.
w
.
atMu
.
Unlock
()
...
...
@@ -1817,7 +1817,7 @@ func (wlink *WatchLink) serve() {
func
(
wlink
*
WatchLink
)
_serve
()
(
err
error
)
{
defer
xerr
.
Contextf
(
&
err
,
"wlink %d: serve rx"
,
wlink
.
id
)
ctx0
:=
context
.
TODO
()
// XXX ctx = ? ->
merge(ctx of wcfs running, ctx of wlink timeout)
ctx0
:=
context
.
TODO
()
// TODO ctx =
merge(ctx of wcfs running, ctx of wlink timeout)
ctx
,
cancel
:=
context
.
WithCancel
(
ctx0
)
wg
:=
xsync
.
NewWorkGroup
(
ctx
)
...
...
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