aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-12-18 01:26:22 -0800
committerChris Lu <chris.lu@gmail.com>2019-12-18 01:26:22 -0800
commit39810a99514df8e2af7f363dbccbc47318df23ca (patch)
tree58b17cfa36c36623d4a7c381c07225c15eaf225a
parent58f88e530cf446976d88884227f7904b166a3953 (diff)
downloadseaweedfs-39810a99514df8e2af7f363dbccbc47318df23ca.tar.xz
seaweedfs-39810a99514df8e2af7f363dbccbc47318df23ca.zip
tiered volume is read only
-rw-r--r--weed/storage/volume_loading.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/storage/volume_loading.go b/weed/storage/volume_loading.go
index 9ec6b14be..4b5f539dc 100644
--- a/weed/storage/volume_loading.go
+++ b/weed/storage/volume_loading.go
@@ -27,6 +27,7 @@ func (v *Volume) load(alsoLoadIndex bool, createDatIfMissing bool, needleMapKind
alreadyHasSuperBlock := false
if v.maybeLoadVolumeTierInfo() {
+ v.readOnly = true
// open remote file
alreadyHasSuperBlock = true
} else if exists, canRead, canWrite, modifiedTime, fileSize := checkFile(fileName + ".dat"); exists {