Output log if mmap enabled (#22684)

Signed-off-by: yah01 <yang.cen@zilliz.com>
pull/22698/head
yah01 2023-03-10 15:51:52 +08:00 committed by GitHub
parent 29f0760e12
commit c626b9000b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -233,6 +233,11 @@ func (node *QueryNode) InitSegcore() {
C.InitCpuNum(cCPUNum)
initcore.InitLocalStorageConfig(Params)
mmapDirPath := paramtable.Get().QueryNodeCfg.MmapDirPath.GetValue()
if len(mmapDirPath) > 0 {
log.Info("mmap enabled", zap.String("dir", mmapDirPath))
}
}
// Init function init historical and streaming module to manage segments