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
e7cc46b7
Commit
e7cc46b7
authored
Apr 22, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
de596547
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
wcfs/wcfs.go
wcfs/wcfs.go
+8
-4
No files found.
wcfs/wcfs.go
View file @
e7cc46b7
...
@@ -429,6 +429,7 @@ import (
...
@@ -429,6 +429,7 @@ import (
"sync"
"sync"
"sync/atomic"
"sync/atomic"
"syscall"
"syscall"
"time"
log
"github.com/golang/glog"
log
"github.com/golang/glog"
"golang.org/x/sync/errgroup"
"golang.org/x/sync/errgroup"
...
@@ -804,10 +805,12 @@ retry:
...
@@ -804,10 +805,12 @@ retry:
// XXX no indexMu lock needed because head is Locked
// XXX no indexMu lock needed because head is Locked
δF
:=
bfdir
.
δFtail
.
Update
(
δZ
,
zhead
)
δF
:=
bfdir
.
δFtail
.
Update
(
δZ
,
zhead
)
//fmt.Printf("\n\nzδhandle: δF (#%d):\n", len(δF))
fmt
.
Printf
(
"
\n\n
zδhandle: δF (#%d):
\n
"
,
len
(
δF
.
Change
))
//for file := range δF {
for
file
:=
range
δF
.
Change
{
// fmt.Printf("\t- %s\n", file.zfile.POid())
fmt
.
Printf
(
"
\t
- %s
\n
"
,
file
.
zfile
.
POid
())
//}
}
time
.
Sleep
(
1
*
time
.
Second
)
fmt
.
Printf
(
"
\n\n
"
)
wg
,
ctx
:=
errgroup
.
WithContext
(
context
.
TODO
())
// XXX ctx = ?
wg
,
ctx
:=
errgroup
.
WithContext
(
context
.
TODO
())
// XXX ctx = ?
for
file
,
δfile
:=
range
δF
.
Change
{
for
file
,
δfile
:=
range
δF
.
Change
{
...
@@ -1394,6 +1397,7 @@ func (wlink *WatchLink) setupWatch(ctx context.Context, foid zodb.Oid, at zodb.T
...
@@ -1394,6 +1397,7 @@ func (wlink *WatchLink) setupWatch(ctx context.Context, foid zodb.Oid, at zodb.T
for
blk
,
rev
:=
range
toPin
{
for
blk
,
rev
:=
range
toPin
{
blk
:=
blk
blk
:=
blk
rev
:=
rev
rev
:=
rev
fmt
.
Printf
(
"S: watch: -> pin #%d @%s
\n
"
,
blk
,
rev
)
wg
.
Go
(
func
()
error
{
wg
.
Go
(
func
()
error
{
return
w
.
pin
(
ctx
,
blk
,
rev
)
return
w
.
pin
(
ctx
,
blk
,
rev
)
})
})
...
...
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