mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-30 17:00:48 +01:00
same change as #5819
follow up with https://github.com/seaweedfs/seaweedfs/pull/5819
This commit is contained in:
1 parent
d15966ae8e
commit
ec9455dab7
1 file changed
+1
-1
@@ -135,7 +135,7 @@ func (ms *MasterServer) dirAssignHandler(w http.ResponseWriter, r *http.Request)
|
||||
|
||||
for time.Now().Sub(startTime) < maxTimeout {
|
||||
fid, count, dnList, shouldGrow, err := ms.Topo.PickForWrite(requestedCount, option, vl)
|
||||
if shouldGrow && !vl.HasGrowRequest() {
|
||||
if shouldGrow && !vl.HasGrowRequest() && vl.ShouldGrowVolumes(option) {
|
||||
// if picked volume is almost full, trigger a volume-grow request
|
||||
glog.V(0).Infof("dirAssign volume growth %v from %v", option.String(), r.RemoteAddr)
|
||||
if ms.Topo.AvailableSpaceFor(option) <= 0 {
|
||||
|
||||
Reference in new issue
Block a user