volume: fix loading old volume format
fix https://github.com/chrislusf/seaweedfs/issues/2487
This commit is contained in:
@@ -83,6 +83,9 @@ func (v *Volume) load(alsoLoadIndex bool, createDatIfMissing bool, needleMapKind
|
|||||||
|
|
||||||
if alreadyHasSuperBlock {
|
if alreadyHasSuperBlock {
|
||||||
err = v.readSuperBlock()
|
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)
|
glog.V(0).Infof("readSuperBlock volume %d version %v", v.Id, v.SuperBlock.Version)
|
||||||
if v.HasRemoteFile() {
|
if v.HasRemoteFile() {
|
||||||
// maybe temporary network problem
|
// maybe temporary network problem
|
||||||
|
|||||||
Reference in New Issue
Block a user