aboutsummaryrefslogtreecommitdiff
path: root/weed/server/volume_server.go
diff options
context:
space:
mode:
authorguol-fnst <goul-fnst@fujitsu.com>2022-05-17 11:06:41 +0800
committerguol-fnst <guol-fnst@fujitsu.com>2022-05-17 15:41:49 +0800
commit076595fbdd50f416998033384c28014f73aae9b9 (patch)
tree2490ca219c7354a20bc3a4600939d6c02ebf1dc8 /weed/server/volume_server.go
parent8fab39e775bd6d3d4eedad5972cf8cb63c2d2019 (diff)
downloadseaweedfs-076595fbdd50f416998033384c28014f73aae9b9.tar.xz
seaweedfs-076595fbdd50f416998033384c28014f73aae9b9.zip
just exit in case of duplicated volume directories were loaded
Diffstat (limited to 'weed/server/volume_server.go')
-rw-r--r--weed/server/volume_server.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/weed/server/volume_server.go b/weed/server/volume_server.go
index f927dbdb8..477a3709c 100644
--- a/weed/server/volume_server.go
+++ b/weed/server/volume_server.go
@@ -2,7 +2,6 @@ package weed_server
import (
"net/http"
- "os"
"sync"
"github.com/chrislusf/seaweedfs/weed/pb"
@@ -45,7 +44,6 @@ type VolumeServer struct {
fileSizeLimitBytes int64
isHeartbeating bool
stopChan chan bool
- pid int
}
func NewVolumeServer(adminMux, publicMux *http.ServeMux, ip string,
@@ -89,7 +87,6 @@ func NewVolumeServer(adminMux, publicMux *http.ServeMux, ip string,
inFlightDownloadDataLimitCond: sync.NewCond(new(sync.Mutex)),
concurrentUploadLimit: concurrentUploadLimit,
concurrentDownloadLimit: concurrentDownloadLimit,
- pid: os.Getpid(),
}
vs.SeedMasterNodes = masterNodes