mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-18 23:05:17 +08:00
refactoring: separating .vif from tier file loading
This commit is contained in:
@@ -26,9 +26,13 @@ func (v *Volume) load(alsoLoadIndex bool, createDatIfMissing bool, needleMapKind
|
||||
fileName := v.FileName()
|
||||
alreadyHasSuperBlock := false
|
||||
|
||||
if v.maybeLoadVolumeInfo() {
|
||||
v.maybeLoadVolumeInfo()
|
||||
|
||||
if v.HasRemoteFile() {
|
||||
v.noWriteCanDelete = true
|
||||
// open remote file
|
||||
v.noWriteOrDelete = false
|
||||
glog.V(0).Infof("loading volume %d from remote %v", v.Id, v.volumeInfo.Files)
|
||||
v.LoadRemoteFile()
|
||||
alreadyHasSuperBlock = true
|
||||
} else if exists, canRead, canWrite, modifiedTime, fileSize := checkFile(fileName + ".dat"); exists {
|
||||
// open dat file
|
||||
|
Reference in New Issue
Block a user