aboutsummaryrefslogtreecommitdiff
path: root/weed/server/master_server_handlers_admin.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2024-08-21 22:53:54 -0700
committerchrislu <chris.lu@gmail.com>2024-08-21 22:53:54 -0700
commit446329681175dbce771378e7c46bbabfeaa4b74e (patch)
treebe08c890a15c8d1b41654e48492e2e0f298b8919 /weed/server/master_server_handlers_admin.go
parent5535b60e8c60511ca393d47fa59f66c378ab977e (diff)
downloadseaweedfs-446329681175dbce771378e7c46bbabfeaa4b74e.tar.xz
seaweedfs-446329681175dbce771378e7c46bbabfeaa4b74e.zip
add parallel vacuuming
Diffstat (limited to 'weed/server/master_server_handlers_admin.go')
-rw-r--r--weed/server/master_server_handlers_admin.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/server/master_server_handlers_admin.go b/weed/server/master_server_handlers_admin.go
index e003d7d9f..47bc1918a 100644
--- a/weed/server/master_server_handlers_admin.go
+++ b/weed/server/master_server_handlers_admin.go
@@ -66,7 +66,7 @@ func (ms *MasterServer) volumeVacuumHandler(w http.ResponseWriter, r *http.Reque
}
}
// glog.Infoln("garbageThreshold =", gcThreshold)
- ms.Topo.Vacuum(ms.grpcDialOption, gcThreshold, 0, "", ms.preallocateSize)
+ ms.Topo.Vacuum(ms.grpcDialOption, gcThreshold, ms.option.MaxParallelVacuumPerServer, 0, "", ms.preallocateSize)
ms.dirStatusHandler(w, r)
}