metaSyncDirForUser returns directory to store cached meta files. The fetcher stores cached metas in the "meta-syncer/" sub directory, but we prefix it with "compactor-meta-" in order to guarantee no clashing with the directory used by the Thanos Syncer, whatever is the user ID.
(userID string)
| 1249 | // but we prefix it with "compactor-meta-" in order to guarantee no clashing with |
| 1250 | // the directory used by the Thanos Syncer, whatever is the user ID. |
| 1251 | func (c *Compactor) metaSyncDirForUser(userID string) string { |
| 1252 | return filepath.Join(c.compactorCfg.DataDir, compactorMetaPrefix+userID) |
| 1253 | } |
| 1254 | |
| 1255 | // compactDirForUser returns the directory to be used to download and compact the blocks for a user |
| 1256 | func (c *Compactor) compactDirForUser(userID string) string { |