MCPcopy Create free account
hub / github.com/cortexproject/cortex / getCachedShippedBlocks

Method getCachedShippedBlocks

pkg/ingester/ingester.go:632–638  ·  view source on GitHub ↗

getCachedShippedBlocks returns the cached shipped blocks.

()

Source from the content-addressed store, hash-verified

630
631// getCachedShippedBlocks returns the cached shipped blocks.
632func (u *userTSDB) getCachedShippedBlocks() map[ulid.ULID]struct{} {
633 u.shippedBlocksMtx.Lock()
634 defer u.shippedBlocksMtx.Unlock()
635
636 // It's safe to directly return the map because it's never updated in-place.
637 return u.shippedBlocks
638}
639
640// getOldestUnshippedBlockTime returns the unix timestamp with milliseconds precision of the oldest
641// TSDB block not shipped to the storage yet, or 0 if all blocks have been shipped.

Calls

no outgoing calls