diff options
| author | Chris Lu <chris.lu@gmail.com> | 2018-09-09 02:31:12 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2018-09-09 02:31:12 -0700 |
| commit | 1937be2bb20191ecd144051414f35bf767ea2c3a (patch) | |
| tree | 83952aa37946ee92480e2d1844f693f4e1d04abb | |
| parent | d7a4b12d2a0f70c17b75dc41e0999d1cfcc2d6b4 (diff) | |
| download | seaweedfs-1937be2bb20191ecd144051414f35bf767ea2c3a.tar.xz seaweedfs-1937be2bb20191ecd144051414f35bf767ea2c3a.zip | |
fix "weed backup" rerunning
"weed backup" rerunning will already have ReplicaPlacement set, while version is not set.
| -rw-r--r-- | weed/storage/volume_loading.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/storage/volume_loading.go b/weed/storage/volume_loading.go index 572220650..653b35cac 100644 --- a/weed/storage/volume_loading.go +++ b/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() } else { e = v.maybeWriteSuperBlock() |
