MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / getDirtyCacheKeys

Method getDirtyCacheKeys

pkg/filestore/blockstore.go:477–487  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

475}
476
477func (s *FileStore) getDirtyCacheKeys() []cacheKey {
478 s.Lock.Lock()
479 defer s.Lock.Unlock()
480 var dirtyCacheKeys []cacheKey
481 for key, entry := range s.Cache {
482 if entry.File != nil {
483 dirtyCacheKeys = append(dirtyCacheKeys, key)
484 }
485 }
486 return dirtyCacheKeys
487}
488
489func (s *FileStore) setIsFlushing(flushing bool) {
490 s.Lock.Lock()

Callers 1

FlushCacheMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected