diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-03-01 00:48:30 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-03-01 00:48:30 -0800 |
| commit | 015d16f43f1ff0a8b8576914c665c963b700f768 (patch) | |
| tree | 8e412436389b189d1fe32c361420edf44addef6f /weed/storage/volume_loading.go | |
| parent | d680676d45e7d5447c241cfef47a5c665931fc85 (diff) | |
| download | seaweedfs-015d16f43f1ff0a8b8576914c665c963b700f768.tar.xz seaweedfs-015d16f43f1ff0a8b8576914c665c963b700f768.zip | |
add vif file versions in case loading superblock fails
Diffstat (limited to 'weed/storage/volume_loading.go')
| -rw-r--r-- | weed/storage/volume_loading.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/storage/volume_loading.go b/weed/storage/volume_loading.go index bff1055bb..cf34ff133 100644 --- a/weed/storage/volume_loading.go +++ b/weed/storage/volume_loading.go @@ -39,12 +39,12 @@ func (v *Volume) load(alsoLoadIndex bool, createDatIfMissing bool, needleMapKind } }() - hasVolumeInfoFile := v.maybeLoadVolumeInfo() && v.volumeInfo.Version != 0 + hasVolumeInfoFile := v.maybeLoadVolumeInfo() if v.HasRemoteFile() { v.noWriteCanDelete = true v.noWriteOrDelete = false - glog.V(0).Infof("loading volume %d from remote %v", v.Id, v.volumeInfo.Files) + glog.V(0).Infof("loading volume %d from remote %v", v.Id, v.volumeInfo) v.LoadRemoteFile() alreadyHasSuperBlock = true } else if exists, canRead, canWrite, modifiedTime, fileSize := util.CheckFile(v.FileName(".dat")); exists { |
