lock on fh.entryViewCache

This commit is contained in:
chrislu
2022-12-23 10:41:45 -08:00
parent 7f1d49a123
commit 41226b54d8
+2
View File
@@ -23,6 +23,8 @@ func (fh *FileHandle) readFromDirtyPages(buff []byte, startOffset int64, tsNs in
}
func (fh *FileHandle) readFromChunks(buff []byte, offset int64) (int64, int64, error) {
fh.entryLock.Lock()
defer fh.entryLock.Unlock()
fileFullPath := fh.FullPath()