core/rawdb/eradb: add godoc comment on derefAndClose

This commit is contained in:
Felix Lange 2025-06-03 10:44:26 +02:00
parent 809f2e140f
commit 0874d708b3

View file

@ -327,6 +327,8 @@ func (db *Store) doneWithFile(epoch uint64, entry *fileCacheEntry) {
}
}
// derefAndClose decrements the reference counter and closes the file
// when it hits zero.
func (entry *fileCacheEntry) derefAndClose(epoch uint64) (closed bool) {
entry.refcount--
if entry.refcount > 0 {