Commit 03116a9b authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent a73d5f2b
...@@ -1026,7 +1026,7 @@ func (root *Root) mkrevfile(rev zodb.Tid, fid zodb.Oid) (_ *BigFile, release fun ...@@ -1026,7 +1026,7 @@ func (root *Root) mkrevfile(rev zodb.Tid, fid zodb.Oid) (_ *BigFile, release fun
frevpath := fmt.Sprintf("@%s/bigfile/%s", rev, fid) // relative to fs root for now frevpath := fmt.Sprintf("@%s/bigfile/%s", rev, fid) // relative to fs root for now
defer xerr.Contextf(&err, "/: mkrevfile %s", frevpath) defer xerr.Contextf(&err, "/: mkrevfile %s", frevpath)
// first check without going through kernel, whether the inode maybe know already // first check without going through kernel, whether the inode maybe known already
xfrev := fsconn.LookupNode(root.Inode(), frevpath) xfrev := fsconn.LookupNode(root.Inode(), frevpath)
if xfrev != nil { if xfrev != nil {
// FIXME checking for "node{0}" is fragile, but currently no other way // FIXME checking for "node{0}" is fragile, but currently no other way
...@@ -1045,7 +1045,7 @@ func (root *Root) mkrevfile(rev zodb.Tid, fid zodb.Oid) (_ *BigFile, release fun ...@@ -1045,7 +1045,7 @@ func (root *Root) mkrevfile(rev zodb.Tid, fid zodb.Oid) (_ *BigFile, release fun
} }
xfrev = fsconn.LookupNode(root.Inode(), frevpath) xfrev = fsconn.LookupNode(root.Inode(), frevpath)
// must be !nil as open succeeded XXX better recheck // must be !nil as open succeeded
return xfrev.Node().(*BigFile), func() { f.Close() }, nil return xfrev.Node().(*BigFile), func() { f.Close() }, nil
} }
......
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