tiered volume is read only

This commit is contained in:
Chris Lu 2019-12-18 01:26:22 -08:00
parent 58f88e530c
commit 39810a9951

View file

@ -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 {