aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/volume_loading.go
diff options
context:
space:
mode:
authorKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2024-09-19 13:04:08 +0500
committerGitHub <noreply@github.com>2024-09-19 01:04:08 -0700
commit6d4f5c94ac9f9cfcfc67f642a8fbc373b0e4504a (patch)
treebda3cc7fb9eda327df08f93c37cb6b5e753d1418 /weed/storage/volume_loading.go
parent50e22864cfbe0208c4f693c4367632944b8c1b81 (diff)
downloadseaweedfs-6d4f5c94ac9f9cfcfc67f642a8fbc373b0e4504a.tar.xz
seaweedfs-6d4f5c94ac9f9cfcfc67f642a8fbc373b0e4504a.zip
[volume] remove truncate idx file if size not healthy (#6043)
Diffstat (limited to 'weed/storage/volume_loading.go')
-rw-r--r--weed/storage/volume_loading.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/storage/volume_loading.go b/weed/storage/volume_loading.go
index 7064fdc03..919b6e2a0 100644
--- a/weed/storage/volume_loading.go
+++ b/weed/storage/volume_loading.go
@@ -135,7 +135,7 @@ func (v *Volume) load(alsoLoadIndex bool, createDatIfMissing bool, needleMapKind
// capactiy overloading.
if !v.HasRemoteFile() {
glog.V(0).Infof("checking volume data integrity for volume %d", v.Id)
- if v.lastAppendAtNs, err = CheckAndFixVolumeDataIntegrity(v, indexFile); err != nil {
+ if v.lastAppendAtNs, err = CheckVolumeDataIntegrity(v, indexFile); err != nil {
v.noWriteOrDelete = true
glog.V(0).Infof("volumeDataIntegrityChecking failed %v", err)
}