aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/erasure_coding
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-03-09 12:09:32 -0800
committerChris Lu <chris.lu@gmail.com>2021-03-09 12:09:32 -0800
commit828f6e9f4d634bf05d0677a4ef014eae7aa92b0e (patch)
tree20fd99f8217b1e3374615dd0b3c72f01203b6f7a /weed/storage/erasure_coding
parent387c6f42185911db6b9fae5981d2350a5a47bd48 (diff)
downloadseaweedfs-828f6e9f4d634bf05d0677a4ef014eae7aa92b0e.tar.xz
seaweedfs-828f6e9f4d634bf05d0677a4ef014eae7aa92b0e.zip
volume: auto add missing vif files
fix https://github.com/chrislusf/seaweedfs/issues/1878
Diffstat (limited to 'weed/storage/erasure_coding')
-rw-r--r--weed/storage/erasure_coding/ec_volume.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/storage/erasure_coding/ec_volume.go b/weed/storage/erasure_coding/ec_volume.go
index 85d6a5fc8..171db92a4 100644
--- a/weed/storage/erasure_coding/ec_volume.go
+++ b/weed/storage/erasure_coding/ec_volume.go
@@ -63,7 +63,7 @@ func NewEcVolume(diskType types.DiskType, dir string, dirIdx string, collection
// read volume info
ev.Version = needle.Version3
- if volumeInfo, found, _ := pb.MaybeLoadVolumeInfo(dataBaseFileName + ".vif"); found {
+ if volumeInfo, _, found, _ := pb.MaybeLoadVolumeInfo(dataBaseFileName + ".vif"); found {
ev.Version = needle.Version(volumeInfo.Version)
} else {
pb.SaveVolumeInfo(dataBaseFileName+".vif", &volume_server_pb.VolumeInfo{Version: uint32(ev.Version)})