skip busy reporting back to master

possible fix for https://github.com/chrislusf/seaweedfs/issues/499
This commit is contained in:
Chris Lu 2017-05-23 21:12:03 -07:00
parent c5f23b26fc
commit bd97cbc523

View file

@ -275,10 +275,6 @@ func (s *Store) Write(i VolumeId, n *Needle) (size uint32, err error) {
} else { } else {
err = fmt.Errorf("Volume Size Limit %d Exceeded! Current size is %d", s.VolumeSizeLimit, v.ContentSize()) err = fmt.Errorf("Volume Size Limit %d Exceeded! Current size is %d", s.VolumeSizeLimit, v.ContentSize())
} }
if s.VolumeSizeLimit < v.ContentSize()+3*uint64(size) {
glog.V(0).Infoln("volume", i, "size", v.ContentSize(), "will exceed limit", s.VolumeSizeLimit)
s.updateMaster()
}
return return
} }
glog.V(0).Infoln("volume", i, "not found!") glog.V(0).Infoln("volume", i, "not found!")