mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
core/rawdb/eradb: add godoc comment on derefAndClose
This commit is contained in:
parent
809f2e140f
commit
0874d708b3
1 changed files with 2 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue