fix "weed backup" rerunning
"weed backup" rerunning will already have ReplicaPlacement set, while version is not set.
This commit is contained in:
@@ -48,7 +48,7 @@ func (v *Volume) load(alsoLoadIndex bool, createDatIfMissing bool, needleMapKind
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if v.ReplicaPlacement == nil {
|
if v.version == Version(0) {
|
||||||
e = v.readSuperBlock()
|
e = v.readSuperBlock()
|
||||||
} else {
|
} else {
|
||||||
e = v.maybeWriteSuperBlock()
|
e = v.maybeWriteSuperBlock()
|
||||||
|
|||||||
Reference in New Issue
Block a user