[skip ci] Fix datanode Cache comment typo (#9483)

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
congqixia 2021-10-08 17:22:54 +08:00 committed by GitHub
parent 1e1d22a053
commit a1651104c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,11 +4,11 @@ import (
"sync"
)
// Cache stores flusing segments' ids to prevent flushing the same segment again and again.
// Cache stores flushing segments' ids to prevent flushing the same segment again and again.
// Once a segment is flushed, its id will be removed from the cache.
//
// A segment not in cache will be added into the cache when `FlushSegments` is called.
// After the flush procedure, wether the segment successfully flushed or not,
// After the flush procedure, whether the segment successfully flushed or not,
// it'll be removed from the cache. So if flush failed, the secondary flush can be triggered.
type Cache struct {
cacheMu sync.RWMutex