diff options
| author | Chris Lu <chris.lu@gmail.com> | 2012-09-23 14:51:25 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2012-09-23 14:51:25 -0700 |
| commit | 2002111a8023631d0c4df91c8874f31a46b507c3 (patch) | |
| tree | aa0e72a17579e65b96a0391682671d58840a2e2a /weed-fs/src/pkg | |
| parent | d89371af998475fd17339377e3fc956d5a58d5ce (diff) | |
| download | seaweedfs-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.go | 7 |
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) { |
