Skip to content

Commit

Permalink
DEVEX-2143 Remove unused command server (#79)
Browse files Browse the repository at this point in the history
* Remove unused command server to allow multiple dxfuse processes

* Bump version for release
  • Loading branch information
kpjensen authored Sep 19, 2022
1 parent 3767332 commit 1329ef4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions dxfuse.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ type Filesys struct {
ops *DxOps

// A way to send external commands to the filesystem
cmdSrv *CmdServer
// cmdSrv *CmdServer

// description for each mounted project
projId2Desc map[string]DxDescribePrj
Expand Down Expand Up @@ -219,9 +219,10 @@ func NewDxfuse(
// initialize sync daemon
//fsys.sybx = NewSyncDbDx(options, dxEnv, projId2Desc, mdb, fsys.mutex)

// DEVEX-2143 removed for now, could be useful again in the future for other enhancements
// create an endpoint for communicating with the user
fsys.cmdSrv = NewCmdServer(options, fsys.sybx)
fsys.cmdSrv.Init()
// fsys.cmdSrv = NewCmdServer(options, fsys.sybx)
// fsys.cmdSrv.Init()

return fsys, nil
}
Expand Down Expand Up @@ -256,7 +257,7 @@ func (fsys *Filesys) Shutdown() {
fsys.pgs.Shutdown()

// close the command server, this frees up the port
fsys.cmdSrv.Close()
// fsys.cmdSrv.Close()

if fsys.uploader != nil {
fsys.uploader.Shutdown()
Expand Down
2 changes: 1 addition & 1 deletion util.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const (
NumRetriesDefault = 10
InitialUploadPartSize = 16 * MiB
MaxUploadPartSize = 700 * MiB
Version = "v1.1.0"
Version = "v1.1.1"
)
const (
InodeInvalid = 0
Expand Down

0 comments on commit 1329ef4

Please sign in to comment.