mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-19 19:03:54 +01:00
removing volume list
This commit is contained in:
1 parent
d89371af99
commit
2002111a80
2 files changed
+6
-10
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user