Browse Source

volume: fix loading old volume format

fix https://github.com/chrislusf/seaweedfs/issues/2487
pull/2500/head
chrislu 3 years ago
parent
commit
59e58c4b23
  1. 3
      weed/storage/volume_loading.go

3
weed/storage/volume_loading.go

@ -83,6 +83,9 @@ func (v *Volume) load(alsoLoadIndex bool, createDatIfMissing bool, needleMapKind
if alreadyHasSuperBlock {
err = v.readSuperBlock()
if err == nil {
v.volumeInfo.Version = uint32(v.SuperBlock.Version)
}
glog.V(0).Infof("readSuperBlock volume %d version %v", v.Id, v.SuperBlock.Version)
if v.HasRemoteFile() {
// maybe temporary network problem

Loading…
Cancel
Save