cache: flush the memory cache after close

This commit is contained in:
remusb 2018-04-04 23:25:53 +03:00
parent 0865e38917
commit 6e11a25df5
1 changed files with 1 additions and 0 deletions

View File

@ -314,6 +314,7 @@ func (r *Handle) Close() error {
waitIdx++
}
}
r.memory.db.Flush()
fs.Debugf(r, "cache reader closed %v", r.offset)
return nil