From 39810a99514df8e2af7f363dbccbc47318df23ca Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 18 Dec 2019 01:26:22 -0800 Subject: [PATCH] tiered volume is read only --- weed/storage/volume_loading.go | 1 + 1 file changed, 1 insertion(+) 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 {