diff options
| author | chrislusf <chris.lu@gmail.com> | 2015-03-09 01:10:01 -0700 |
|---|---|---|
| committer | chrislusf <chris.lu@gmail.com> | 2015-03-09 01:10:04 -0700 |
| commit | f511b507a5230e931d0250b446f744073be879b3 (patch) | |
| tree | e9728b47902fc4f31aa93d24a937cb2654becc6c /go/storage | |
| parent | d48d76cb4f419a58539fb84c7a45c7eb863b854f (diff) | |
| download | seaweedfs-f511b507a5230e931d0250b446f744073be879b3.tar.xz seaweedfs-f511b507a5230e931d0250b446f744073be879b3.zip | |
Add read only public port on volume server
Add read only public port on volume server
Diffstat (limited to 'go/storage')
| -rw-r--r-- | go/storage/store.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/go/storage/store.go b/go/storage/store.go index d280175f2..fa618b44b 100644 --- a/go/storage/store.go +++ b/go/storage/store.go @@ -76,7 +76,6 @@ func (mn *MasterNodes) findMaster() (string, error) { type Store struct { Ip string Port int - AdminPort int PublicUrl string Locations []*DiskLocation dataCenter string //optional informaton, overwriting master setting if exists @@ -91,8 +90,8 @@ func (s *Store) String() (str string) { return } -func NewStore(port, adminPort int, ip, publicUrl string, dirnames []string, maxVolumeCounts []int) (s *Store) { - s = &Store{Port: port, AdminPort: adminPort, Ip: ip, PublicUrl: publicUrl} +func NewStore(port int, ip, publicUrl string, dirnames []string, maxVolumeCounts []int) (s *Store) { + s = &Store{Port: port, Ip: ip, PublicUrl: publicUrl} s.Locations = make([]*DiskLocation, 0) for i := 0; i < len(dirnames); i++ { location := &DiskLocation{Directory: dirnames[i], MaxVolumeCount: maxVolumeCounts[i]} @@ -310,7 +309,6 @@ func (s *Store) Join() (masterNode string, secretKey security.Secret, e error) { DataCenter: proto.String(s.dataCenter), Rack: proto.String(s.rack), Volumes: volumeMessages, - AdminPort: proto.Uint32(uint32(s.AdminPort)), } data, err := proto.Marshal(joinMessage) |
