diff options
| author | a <eddy@gfxlabs.io> | 2022-04-07 08:22:59 -0700 |
|---|---|---|
| committer | a <eddy@gfxlabs.io> | 2022-04-07 08:22:59 -0700 |
| commit | 41d396edc4a8cdd586e9e58cab7b725c070ca685 (patch) | |
| tree | fdf5a556d3627ba1fcf4d1f12e1e13b9293db88b /weed/command | |
| parent | ec53eec94f8a745c6a289d593725824a00314793 (diff) | |
| parent | abe3cc6df228a2700f25557f7d600f6810b450bf (diff) | |
| download | seaweedfs-41d396edc4a8cdd586e9e58cab7b725c070ca685.tar.xz seaweedfs-41d396edc4a8cdd586e9e58cab7b725c070ca685.zip | |
Merge branch 'master' into a
Diffstat (limited to 'weed/command')
| -rw-r--r-- | weed/command/mount_std.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/command/mount_std.go b/weed/command/mount_std.go index 7926c9cdc..1d929dc96 100644 --- a/weed/command/mount_std.go +++ b/weed/command/mount_std.go @@ -108,9 +108,9 @@ func RunMount(option *MountOptions, umask os.FileMode) bool { mountDirHash = -mountDirHash } *option.localSocket = fmt.Sprintf("/tmp/seaweefs-mount-%d.sock", mountDirHash) - if err := os.Remove(*option.localSocket); err != nil && !os.IsNotExist(err) { - glog.Fatalf("Failed to remove %s, error: %s", *option.localSocket, err.Error()) - } + } + if err := os.Remove(*option.localSocket); err != nil && !os.IsNotExist(err) { + glog.Fatalf("Failed to remove %s, error: %s", *option.localSocket, err.Error()) } montSocketListener, err := net.Listen("unix", *option.localSocket) if err != nil { |
