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
6d86c5dc
Commit
6d86c5dc
authored
Apr 23, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
c49c7b5c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
wcfs/misc.go
wcfs/misc.go
+12
-4
wcfs/wcfs.go
wcfs/wcfs.go
+0
-1
No files found.
wcfs/misc.go
View file @
6d86c5dc
...
...
@@ -415,16 +415,24 @@ func (sk *FileSock) Close() error {
return
err
}
// Flush implements nodefs.File to handle close(file) call.
// XXX -> Release?
// Release implements nodefs.File to handle when last user reference to the file is gone.
//
// Note: it is not Flush, since Fush is called on close(file) and in general
// multiple time (e.g. in case of duplicated file descriptor).
//
// XXX -> call dtor on release?
func
(
f
*
skFile
)
Flush
()
fuse
.
Status
{
func
(
f
*
skFile
)
Release
()
{
err
:=
f
.
rx
.
Close
()
err2
:=
f
.
tx
.
Close
()
if
err
==
nil
{
err
=
err2
}
return
err2LogStatus
(
err
)
// the kernel ignores any error return from release.
// close on pipes always returns nil and can be called multiple times.
if
err
!=
nil
{
panic
(
err
)
}
}
...
...
wcfs/wcfs.go
View file @
6d86c5dc
...
...
@@ -1409,7 +1409,6 @@ func (wlink *WatchLink) setupWatch(ctx context.Context, foid zodb.Oid, at zodb.T
for
blk
,
rev
:=
range
toPin
{
blk
:=
blk
rev
:=
rev
//fmt.Printf("S: watch: -> pin #%d @%s\n", blk, rev)
wg
.
Go
(
func
()
error
{
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