From 3cc9e858954c1c9d91af2054b60eb9c04f4a49c4 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Fri, 13 Mar 2020 16:17:44 -0700 Subject: [PATCH] volume: vacuum pass preallocate variable --- weed/topology/topology_vacuum.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/weed/topology/topology_vacuum.go b/weed/topology/topology_vacuum.go index 9d964489d..532029ac3 100644 --- a/weed/topology/topology_vacuum.go +++ b/weed/topology/topology_vacuum.go @@ -66,7 +66,8 @@ func batchVacuumVolumeCompact(grpcDialOption grpc.DialOption, vl *VolumeLayout, glog.V(0).Infoln(index, "Start vacuuming", vid, "on", url) err := operation.WithVolumeServerClient(url, grpcDialOption, func(volumeServerClient volume_server_pb.VolumeServerClient) error { _, err := volumeServerClient.VacuumVolumeCompact(context.Background(), &volume_server_pb.VacuumVolumeCompactRequest{ - VolumeId: uint32(vid), + VolumeId: uint32(vid), + Preallocate: preallocate, }) return err })