diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2022-04-18 09:59:58 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-18 09:59:58 -0700 |
| commit | 60ae6082c20ee952835dd9944f67addc0f039ab1 (patch) | |
| tree | 7ead6210486bbe6bca9a1b23e8bb6e808a6fe356 /weed/server | |
| parent | 868b4f894485d1b041daf4cfbfc96856b27eb253 (diff) | |
| parent | 36c5a59ed8073099c8a5513667c5676f148657f7 (diff) | |
| download | seaweedfs-60ae6082c20ee952835dd9944f67addc0f039ab1.tar.xz seaweedfs-60ae6082c20ee952835dd9944f67addc0f039ab1.zip | |
Merge pull request #2936 from kmlebedev/vacuum_by_vid
shell vacuum volume by collection and volume id
Diffstat (limited to 'weed/server')
| -rw-r--r-- | weed/server/master_grpc_server_volume.go | 2 | ||||
| -rw-r--r-- | weed/server/master_server_handlers_admin.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/weed/server/master_grpc_server_volume.go b/weed/server/master_grpc_server_volume.go index 9389bceb8..bc92dd332 100644 --- a/weed/server/master_grpc_server_volume.go +++ b/weed/server/master_grpc_server_volume.go @@ -268,7 +268,7 @@ func (ms *MasterServer) VacuumVolume(ctx context.Context, req *master_pb.VacuumV resp := &master_pb.VacuumVolumeResponse{} - ms.Topo.Vacuum(ms.grpcDialOption, float64(req.GarbageThreshold), ms.preallocateSize) + ms.Topo.Vacuum(ms.grpcDialOption, float64(req.GarbageThreshold), req.VolumeId, req.Collection, ms.preallocateSize) return resp, nil } diff --git a/weed/server/master_server_handlers_admin.go b/weed/server/master_server_handlers_admin.go index 72d4e20d7..ade750ccc 100644 --- a/weed/server/master_server_handlers_admin.go +++ b/weed/server/master_server_handlers_admin.go @@ -64,7 +64,7 @@ func (ms *MasterServer) volumeVacuumHandler(w http.ResponseWriter, r *http.Reque } } // glog.Infoln("garbageThreshold =", gcThreshold) - ms.Topo.Vacuum(ms.grpcDialOption, gcThreshold, ms.preallocateSize) + ms.Topo.Vacuum(ms.grpcDialOption, gcThreshold, 0, "", ms.preallocateSize) ms.dirStatusHandler(w, r) } |
