From ec9455dab773e574174c54a4b54d2b1ebae1f249 Mon Sep 17 00:00:00 2001 From: chrislu Date: Fri, 26 Jul 2024 11:06:47 -0700 Subject: [PATCH] same change as #5819 follow up with https://github.com/seaweedfs/seaweedfs/pull/5819 --- weed/server/master_server_handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/server/master_server_handlers.go b/weed/server/master_server_handlers.go index d2f982226..00250452a 100644 --- a/weed/server/master_server_handlers.go +++ b/weed/server/master_server_handlers.go @@ -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 {