From ab70aa92da9b0baf1b918656e792b2344f4a766e Mon Sep 17 00:00:00 2001 From: rustrover <154583430+rustrover@users.noreply.github.com> Date: Sat, 9 Mar 2024 23:35:47 +0800 Subject: [PATCH] remove repetitive words (#5364) --- weed/command/master_follower.go | 2 +- weed/server/volume_grpc_copy.go | 2 +- weed/storage/erasure_coding/ec_decoder.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/weed/command/master_follower.go b/weed/command/master_follower.go index c4f0cfc3c..64583c602 100644 --- a/weed/command/master_follower.go +++ b/weed/command/master_follower.go @@ -52,7 +52,7 @@ var cmdMasterFollower = &Command{ In most cases, the master follower is not needed. In big data centers with thousands of volume servers. In theory, the master may have trouble to keep up with the write requests and read requests. - The master follower can relieve the master from from read requests, which only needs to + The master follower can relieve the master from read requests, which only needs to lookup a fileId or volumeId. The master follower currently can handle fileId lookup requests: diff --git a/weed/server/volume_grpc_copy.go b/weed/server/volume_grpc_copy.go index 92fe0a1be..51b61b225 100644 --- a/weed/server/volume_grpc_copy.go +++ b/weed/server/volume_grpc_copy.go @@ -226,7 +226,7 @@ func (vs *VolumeServer) doCopyFileWithThrottler(client volume_server_pb.VolumeSe /* * -only check the the differ of the file size +only check the differ of the file size todo: maybe should check the received count and deleted count of the volume */ func checkCopyFiles(originFileInf *volume_server_pb.ReadVolumeFileStatusResponse, hasRemoteDatFile bool, idxFileName, datFileName string) error { diff --git a/weed/storage/erasure_coding/ec_decoder.go b/weed/storage/erasure_coding/ec_decoder.go index 9a415fc78..a94ca1fe3 100644 --- a/weed/storage/erasure_coding/ec_decoder.go +++ b/weed/storage/erasure_coding/ec_decoder.go @@ -150,7 +150,7 @@ func iterateEcjFile(baseFileName string, processNeedleFn func(key types.NeedleId } -// WriteDatFile generates .dat from from .ec00 ~ .ec09 files +// WriteDatFile generates .dat from .ec00 ~ .ec09 files func WriteDatFile(baseFileName string, datFileSize int64, shardFileNames []string) error { datFile, openErr := os.OpenFile(baseFileName+".dat", os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0644)