diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-12-18 01:26:22 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-12-18 01:26:22 -0800 |
| commit | 39810a99514df8e2af7f363dbccbc47318df23ca (patch) | |
| tree | 58b17cfa36c36623d4a7c381c07225c15eaf225a | |
| parent | 58f88e530cf446976d88884227f7904b166a3953 (diff) | |
| download | seaweedfs-39810a99514df8e2af7f363dbccbc47318df23ca.tar.xz seaweedfs-39810a99514df8e2af7f363dbccbc47318df23ca.zip | |
tiered volume is read only
| -rw-r--r-- | weed/storage/volume_loading.go | 1 |
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 { |
