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
de410d01
Commit
de410d01
authored
Jul 01, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
0df9c1fc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
wcfs/wcfs.go
wcfs/wcfs.go
+6
-3
No files found.
wcfs/wcfs.go
View file @
de410d01
...
...
@@ -2120,7 +2120,6 @@ func _main() (err error) {
zurl
:=
flag
.
Args
()[
0
]
mntpt
:=
flag
.
Args
()[
1
]
defer
xerr
.
Contextf
(
&
err
,
"fsserve %s <- %s"
,
mntpt
,
zurl
)
// XXX text
xclose
:=
func
(
c
io
.
Closer
)
{
err
=
xerr
.
First
(
err
,
c
.
Close
())
}
...
...
@@ -2130,6 +2129,8 @@ func _main() (err error) {
stdlog
.
SetFlags
(
stdlog
.
Lmicroseconds
)
}
log
.
Infof
(
"start %q %q"
,
mntpt
,
zurl
)
// open zodb storage/watch/db/connection
ctx
:=
context
.
Background
()
// XXX + timeout?
zstor
,
err
:=
zodb
.
Open
(
ctx
,
zurl
,
&
zodb
.
OpenOptions
{
...
...
@@ -2261,6 +2262,8 @@ func _main() (err error) {
// opened, so when all inodes has been forgotten - we know all wcfs.py clients exited)
_
=
autoexit
defer
xerr
.
Contextf
(
&
err
,
"serve %s %s"
,
mntpt
,
zurl
)
// spawn filesystem server.
//
// use `go serve` + `waitMount` not just `serve` - because waitMount
...
...
@@ -2274,7 +2277,7 @@ func _main() (err error) {
}()
err
=
fssrv
.
WaitMount
()
if
err
!=
nil
{
return
err
// XXX err ctx?
return
err
}
// filesystem server is serving requests.
...
...
@@ -2290,5 +2293,5 @@ func _main() (err error) {
// wait for unmount
<-
serveCtx
.
Done
()
return
nil
return
nil
// XXX serveErr ?
}
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