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
455a5442
Commit
455a5442
authored
Mar 05, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
e1ad2ae3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
wcfs/wcfs.go
wcfs/wcfs.go
+7
-4
No files found.
wcfs/wcfs.go
View file @
455a5442
...
@@ -777,7 +777,7 @@ retry:
...
@@ -777,7 +777,7 @@ retry:
continue
continue
}
}
wg
.
Go
(
func
()
error
{
wg
.
Go
(
func
()
error
{
return
file
.
invalidateAttr
()
return
file
.
invalidateAttr
()
// XXX pass ctx?
})
})
}
}
err
=
wg
.
Wait
()
err
=
wg
.
Wait
()
...
@@ -797,8 +797,11 @@ retry:
...
@@ -797,8 +797,11 @@ retry:
// 2. abort old and resync to new txn/at
// 2. abort old and resync to new txn/at
transaction
.
Current
(
zhead
.
txnCtx
)
.
Abort
()
transaction
.
Current
(
zhead
.
txnCtx
)
.
Abort
()
txn
,
ctx
:=
transaction
.
New
(
context
.
Background
())
// XXX bg ok?
_
,
ctx
=
transaction
.
New
(
context
.
Background
())
// XXX bg ok?
zhead
.
Resync
(
txn
,
zδ
.
Tid
)
err
=
zhead
.
Resync
(
ctx
,
zδ
.
Tid
)
if
err
!=
nil
{
panic
(
err
)
// XXX
}
zhead
.
txnCtx
=
ctx
zhead
.
txnCtx
=
ctx
// 3. reactivate/restat invalidated ZBigFile
// 3. reactivate/restat invalidated ZBigFile
...
@@ -1632,7 +1635,7 @@ func main() {
...
@@ -1632,7 +1635,7 @@ func main() {
//
//
// use `go serve` + `waitMount` not just `serve` - because waitMount
// use `go serve` + `waitMount` not just `serve` - because waitMount
// cares to disable OS calling poll on us.
// cares to disable OS calling poll on us.
// ( if we don't disable polling fs serving can get stuck - see
// ( if we don't disable polling
-
fs serving can get stuck - see
// https://github.com/hanwen/go-fuse/commit/4f10e248eb for details )
// https://github.com/hanwen/go-fuse/commit/4f10e248eb for details )
done
:=
make
(
chan
struct
{})
done
:=
make
(
chan
struct
{})
go
func
()
{
go
func
()
{
...
...
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