Browse Source

set the volume size limit

fixing https://github.com/chrislusf/seaweedfs/issues/447
pull/448/head
Chris Lu 8 years ago
parent
commit
c2ce97785f
  1. 8
      weed/server/volume_grpc_client.go

8
weed/server/volume_grpc_client.go

@ -63,8 +63,12 @@ func (vs *VolumeServer) doHeartbeat(sleepInterval time.Duration) error {
doneChan <- err
return
}
vs.store.VolumeSizeLimit = in.GetVolumeSizeLimit()
vs.guard.SecretKey = security.Secret(in.GetSecretKey())
if in.GetVolumeSizeLimit() != 0 {
vs.store.VolumeSizeLimit = in.GetVolumeSizeLimit()
}
if in.GetSecretKey() != "" {
vs.guard.SecretKey = security.Secret(in.GetSecretKey())
}
if in.GetLeader() != "" && masterNode != in.GetLeader() {
vs.masterNodes.SetPossibleLeader(in.GetLeader())
doneChan <- nil

Loading…
Cancel
Save