aboutsummaryrefslogtreecommitdiff
path: root/weed-fs/src/pkg
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2012-09-23 14:51:25 -0700
committerChris Lu <chris.lu@gmail.com>2012-09-23 14:51:25 -0700
commit2002111a8023631d0c4df91c8874f31a46b507c3 (patch)
treeaa0e72a17579e65b96a0391682671d58840a2e2a /weed-fs/src/pkg
parentd89371af998475fd17339377e3fc956d5a58d5ce (diff)
downloadseaweedfs-2002111a8023631d0c4df91c8874f31a46b507c3.tar.xz
seaweedfs-2002111a8023631d0c4df91c8874f31a46b507c3.zip
removing volume list
Diffstat (limited to 'weed-fs/src/pkg')
-rw-r--r--weed-fs/src/pkg/storage/store.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/weed-fs/src/pkg/storage/store.go b/weed-fs/src/pkg/storage/store.go
index 4f7e66ef0..bea6f8633 100644
--- a/weed-fs/src/pkg/storage/store.go
+++ b/weed-fs/src/pkg/storage/store.go
@@ -19,15 +19,12 @@ type Store struct {
MaxVolumeCount int
}
-func NewStore(port int, publicUrl, dirname string, maxVolumeCount int, volumeListString string) (s *Store) {
+func NewStore(port int, publicUrl, dirname string, maxVolumeCount int) (s *Store) {
s = &Store{Port: port, PublicUrl: publicUrl, dir: dirname, MaxVolumeCount: maxVolumeCount}
s.volumes = make(map[VolumeId]*Volume)
s.loadExistingVolumes()
- if volumeListString != "" {
- s.AddVolume(volumeListString, "00")
- }
- log.Println("Store started on dir:", dirname, "with", len(s.volumes), "volumes", volumeListString)
+ log.Println("Store started on dir:", dirname, "with", len(s.volumes), "volumes")
return
}
func (s *Store) AddVolume(volumeListString string, replicationType string) (error) {