aboutsummaryrefslogtreecommitdiff
path: root/weed/command/volume.go
diff options
context:
space:
mode:
authorKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2023-10-09 21:57:26 +0500
committerGitHub <noreply@github.com>2023-10-09 09:57:26 -0700
commit2b3e39397e03c86ddbabe8d4ba7509e6638bf8bf (patch)
treeb8dfdb25eb37caca540316151186a6eff7e94b84 /weed/command/volume.go
parent3fe00996b244886e4a89f3aa4250a391919db106 (diff)
downloadseaweedfs-2b3e39397e03c86ddbabe8d4ba7509e6638bf8bf.tar.xz
seaweedfs-2b3e39397e03c86ddbabe8d4ba7509e6638bf8bf.zip
fix: skipping checking active volumes with the same number of files at the moment (#4893)
* fix: skipping checking active volumes with the same number of files at the moment https://github.com/seaweedfs/seaweedfs/issues/4140 * refactor with comments https://github.com/seaweedfs/seaweedfs/issues/4140 * add TestShouldSkipVolume --------- Co-authored-by: Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.co>
Diffstat (limited to 'weed/command/volume.go')
-rw-r--r--weed/command/volume.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/command/volume.go b/weed/command/volume.go
index 5c4a57451..852989d1f 100644
--- a/weed/command/volume.go
+++ b/weed/command/volume.go
@@ -19,6 +19,7 @@ import (
"github.com/seaweedfs/seaweedfs/weed/pb"
"github.com/seaweedfs/seaweedfs/weed/security"
+ "github.com/seaweedfs/seaweedfs/weed/server/constants"
"github.com/seaweedfs/seaweedfs/weed/util/httpdown"
"google.golang.org/grpc/reflection"
@@ -241,7 +242,7 @@ func (v VolumeServerOptions) startVolumeServer(volumeFolders, maxVolumeCounts, v
v.folders, v.folderMaxLimits, minFreeSpaces, diskTypes,
*v.idxFolder,
volumeNeedleMapKind,
- v.masters, 5, *v.dataCenter, *v.rack,
+ v.masters, constants.VolumePulseSeconds, *v.dataCenter, *v.rack,
v.whiteList,
*v.fixJpgOrientation, *v.readMode,
*v.compactionMBPerSecond,