aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/volume.go
diff options
context:
space:
mode:
authorshichanglin5 <shichanglin5@qq.com>2022-06-09 20:41:16 +0800
committershichanglin5 <shichanglin5@qq.com>2022-06-09 20:41:16 +0800
commitf5b0c04b149c80cb40fda9cb1d93d9a92c826451 (patch)
treea0366d15987f749fe956e98d5e8e354d959a8528 /weed/storage/volume.go
parent4a046e4de7a40730895f8149120ce8d6e95f961d (diff)
downloadseaweedfs-f5b0c04b149c80cb40fda9cb1d93d9a92c826451.tar.xz
seaweedfs-f5b0c04b149c80cb40fda9cb1d93d9a92c826451.zip
perf: Optimized volume handling duplicateUUID logic to avoid quitting when volume is actualy normal
Under normal circumstances, there will be no problems, but when the master is debugged in the local environment, the volume client cannot communicate with the master normally, so the sendHeartBeat logic is restarted, and a new connection is created to report the heartbeat. If the master has not cleared the uuid of the volume at this time, then The master will respond to volume duplicateUUIDS, and the volume service will exit, but in fact the uuid of the volume is not duplicated
Diffstat (limited to 'weed/storage/volume.go')
-rw-r--r--weed/storage/volume.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/weed/storage/volume.go b/weed/storage/volume.go
index 3539efa85..fc77fa63a 100644
--- a/weed/storage/volume.go
+++ b/weed/storage/volume.go
@@ -293,7 +293,6 @@ func (v *Volume) collectStatus() (maxFileKey types.NeedleId, datFileSize int64,
fileCount = uint64(v.nm.FileCount())
deletedCount = uint64(v.nm.DeletedCount())
deletedSize = v.nm.DeletedSize()
- fileCount = uint64(v.nm.FileCount())
return
}