aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2018-09-09 02:38:30 -0700
committerChris Lu <chris.lu@gmail.com>2018-09-09 02:38:30 -0700
commitbc8d34143d1265a58a04073c9edd394a70b83dcb (patch)
tree36f60b74aeb8c4c7b3c78e060e798aff9a208c57
parent1937be2bb20191ecd144051414f35bf767ea2c3a (diff)
downloadseaweedfs-bc8d34143d1265a58a04073c9edd394a70b83dcb.tar.xz
seaweedfs-bc8d34143d1265a58a04073c9edd394a70b83dcb.zip
Revert "fix "weed backup" rerunning"
This reverts commit 1937be2bb20191ecd144051414f35bf767ea2c3a.
-rw-r--r--weed/storage/volume_loading.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/storage/volume_loading.go b/weed/storage/volume_loading.go
index 653b35cac..572220650 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.version == Version(0) {
+ if v.ReplicaPlacement == nil {
e = v.readSuperBlock()
} else {
e = v.maybeWriteSuperBlock()