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
131662a9
Commit
131662a9
authored
Jul 01, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
aae77bfe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
wcfs/wcfs.go
wcfs/wcfs.go
+3
-1
No files found.
wcfs/wcfs.go
View file @
131662a9
...
@@ -1220,13 +1220,15 @@ func (f *BigFile) updateWatchers(ctx context.Context, blk int64, treepath []btre
...
@@ -1220,13 +1220,15 @@ func (f *BigFile) updateWatchers(ctx context.Context, blk int64, treepath []btre
blkrev
:=
blkrevMax
blkrev
:=
blkrevMax
blkrevRough
:=
true
blkrevRough
:=
true
// XXX locking (f.watches)
wg
,
ctx
:=
errgroup
.
WithContext
(
ctx
)
wg
,
ctx
:=
errgroup
.
WithContext
(
ctx
)
for
w
:=
range
f
.
watches
{
for
w
:=
range
f
.
watches
{
w
:=
w
w
:=
w
fmt
.
Printf
(
"S: read -> update watchers: w @%s
\n
"
,
w
.
at
)
fmt
.
Printf
(
"S: read -> update watchers: w @%s
\n
"
,
w
.
at
)
// XXX locking
// XXX locking
(w)
// the block is already covered by @w.at database view
// the block is already covered by @w.at database view
if
blkrev
<=
w
.
at
{
if
blkrev
<=
w
.
at
{
...
...
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