Skip to content

Commit

Permalink
Use path.Join when init ChunkCache path (#27433)
Browse files Browse the repository at this point in the history
Signed-off-by: bigsheeper <[email protected]>
  • Loading branch information
bigsheeper authored Sep 30, 2023
1 parent 63ac43a commit 7d0dd00
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/querynodev2/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,13 +236,13 @@ func (node *QueryNode) InitSegcore() error {
if len(mmapDirPath) == 0 {
mmapDirPath = paramtable.Get().LocalStorageCfg.Path.GetValue()
}
mmapDirPath += "/chunk_cache"
chunkCachePath := path.Join(mmapDirPath, "chunk_cache")
policy := paramtable.Get().QueryNodeCfg.ReadAheadPolicy.GetValue()
err = initcore.InitChunkCache(mmapDirPath, policy)
err = initcore.InitChunkCache(chunkCachePath, policy)
if err != nil {
return err
}
log.Info("InitChunkCache done", zap.String("dir", mmapDirPath), zap.String("policy", policy))
log.Info("InitChunkCache done", zap.String("dir", chunkCachePath), zap.String("policy", policy))

initcore.InitTraceConfig(paramtable.Get())
return nil
Expand Down

0 comments on commit 7d0dd00

Please sign in to comment.