[shell] feat:stop vacuum immediately once volume.vacuum.disable was executed (#6375)

stop vacuum immediately once volume.vacuum.disable was executed

Co-authored-by: dsd <dsd2019@foxmail.com>
This commit is contained in:
dsd
2024-12-19 03:56:40 +08:00
committed by GitHub
parent 9fbc4ea417
commit 72af97162f
4 changed files with 25 additions and 10 deletions

View File

@@ -27,7 +27,7 @@ func (t *Topology) StartRefreshWritableVolumes(grpcDialOption grpc.DialOption, g
for {
if t.IsLeader() {
if !t.isDisableVacuum {
t.Vacuum(grpcDialOption, garbageThreshold, concurrentVacuumLimitPerVolumeServer, 0, "", preallocate)
t.Vacuum(grpcDialOption, garbageThreshold, concurrentVacuumLimitPerVolumeServer, 0, "", preallocate, true)
}
} else {
stats.MasterReplicaPlacementMismatch.Reset()