getCachedShippedBlocks returns the cached shipped blocks.
()
| 630 | |
| 631 | // getCachedShippedBlocks returns the cached shipped blocks. |
| 632 | func (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. |
no outgoing calls