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

Method compactDirForUser

pkg/compactor/compactor.go:1256–1258  ·  view source on GitHub ↗

compactDirForUser returns the directory to be used to download and compact the blocks for a user

(userID string)

Source from the content-addressed store, hash-verified

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 {
1257 return filepath.Join(c.compactRootDir(), userID)
1258}
1259
1260// compactRootDir returns the root directory to be used to download and compact blocks
1261func (c *Compactor) compactRootDir() string {

Calls 2

compactRootDirMethod · 0.95
JoinMethod · 0.80