mirror of
https://github.com/kopia/kopia.git
synced 2026-05-08 06:42:51 -04:00
Trivial: add clarifying comment
This commit is contained in:
committed by
Jarek Kowalski
parent
8e9d56fcf2
commit
c0b1345d9a
@@ -89,6 +89,9 @@ func (b *committedContentIndex) packFilesChanged(packFiles []blob.ID) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// Uses packFiles for indexing and returns whether or not the set of index
|
||||
// packs have changed compared to the previous set. An error is returned if the
|
||||
// indices cannot be read for any reason.
|
||||
func (b *committedContentIndex) use(packFiles []blob.ID) (bool, error) {
|
||||
b.mu.Lock()
|
||||
defer b.mu.Unlock()
|
||||
@@ -124,7 +127,7 @@ func (b *committedContentIndex) use(packFiles []blob.ID) (bool, error) {
|
||||
log.Warningf("unable to expire unused content index files: %v", err)
|
||||
}
|
||||
|
||||
newMerged = nil
|
||||
newMerged = nil // prevent closing newMerged indices
|
||||
|
||||
return true, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user