Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jacobsa-fuse
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
Kirill Smelkov
jacobsa-fuse
Commits
43892975
Commit
43892975
authored
May 25, 2015
by
Aaron Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated newConnection.
parent
f650aab1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
connection.go
connection.go
+10
-1
No files found.
connection.go
View file @
43892975
...
...
@@ -41,6 +41,7 @@ var fTraceByPID = flag.Bool(
// A connection to the fuse kernel process.
type
Connection
struct
{
debugLogger
*
log
.
Logger
errorLogger
*
log
.
Logger
wrapped
*
bazilfuse
.
Conn
opsInFlight
sync
.
WaitGroup
...
...
@@ -69,9 +70,11 @@ type Connection struct {
func
newConnection
(
parentCtx
context
.
Context
,
debugLogger
*
log
.
Logger
,
errorLogger
*
log
.
Logger
,
wrapped
*
bazilfuse
.
Conn
)
(
c
*
Connection
,
err
error
)
{
c
=
&
Connection
{
debugLogger
:
debugLogger
,
errorLogger
:
errorLogger
,
wrapped
:
wrapped
,
parentCtx
:
parentCtx
,
cancelFuncs
:
make
(
map
[
bazilfuse
.
RequestID
]
func
()),
...
...
@@ -342,7 +345,13 @@ func (c *Connection) ReadOp() (op fuseops.Op, err error) {
finished
:=
func
(
err
error
)
{
c
.
finishOp
(
bfReq
)
}
op
=
fuseops
.
Convert
(
opCtx
,
bfReq
,
debugLogForOp
,
finished
)
op
=
fuseops
.
Convert
(
opCtx
,
bfReq
,
debugLogForOp
,
c
.
errorLogger
,
finished
)
return
}
}
...
...
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