0
0
Fork 0

Update persister.go

comment updated
This commit is contained in:
Sreekanth Sivasankaran 2018-02-05 20:49:30 +05:30 committed by GitHub
parent 678c412157
commit 9636209ae5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -274,7 +274,7 @@ func (s *Scorch) persistSnapshot(snapshot *IndexSnapshot) error {
_ = rootPrev.DecRef()
}
}
// unlock the files for clean up
// allow files to become eligible for removal
s.rootLock.Lock()
for _, filename := range filenames {
delete(s.ineligibleForRemoval, filename)