Browse Source

fix "weed backup" rerunning

"weed backup" rerunning will already have ReplicaPlacement set, while version is not set.
pull/747/head
Chris Lu 6 years ago
parent
commit
1937be2bb2
  1. 2
      weed/storage/volume_loading.go

2
weed/storage/volume_loading.go

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

Loading…
Cancel
Save