1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-07-05 08:36:55 +02:00

fix "weed backup" rerunning

"weed backup" rerunning will already have ReplicaPlacement set, while version is not set.
This commit is contained in:
Chris Lu 2018-09-09 02:31:12 -07:00
parent d7a4b12d2a
commit 1937be2bb2

View file

@ -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()