MCPcopy Index your code
hub / github.com/cortexproject/cortex / metaSyncDirForUser

Method metaSyncDirForUser

pkg/compactor/compactor.go:1251–1253  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
1251func (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
1256func (c *Compactor) compactDirForUser(userID string) string {

Callers 4

compactUsersMethod · 0.95
compactUserMethod · 0.95

Calls 1

JoinMethod · 0.80