mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 03:39:22 +08:00
read volume lastAppendAtNs when loading a volume
This commit is contained in:
@@ -73,7 +73,7 @@ func (v *Volume) load(alsoLoadIndex bool, createDatIfMissing bool, needleMapKind
|
||||
return fmt.Errorf("cannot write Volume Index %s.idx: %v", fileName, e)
|
||||
}
|
||||
}
|
||||
if e = CheckVolumeDataIntegrity(v, indexFile); e != nil {
|
||||
if v.lastAppendAtNs, e = CheckVolumeDataIntegrity(v, indexFile); e != nil {
|
||||
v.readOnly = true
|
||||
glog.V(0).Infof("volumeDataIntegrityChecking failed %v", e)
|
||||
}
|
||||
|
Reference in New Issue
Block a user