Commit 455a5442 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent e1ad2ae3
...@@ -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, .Tid) err = zhead.Resync(ctx, .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 () {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment