fix: fix mmap enable log (#31439) (#31573)

issue: https://github.com/milvus-io/milvus/issues/31443

related pr: https://github.com/milvus-io/milvus/pull/31439

Signed-off-by: sunby <sunbingyi1992@gmail.com>
pull/31641/head^2
Bingyi Sun 2024-03-27 16:33:10 +08:00 committed by GitHub
parent 8ba4677e50
commit 5d8bbea5e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -392,8 +392,7 @@ func (node *QueryNode) Start() error {
paramtable.SetCreateTime(time.Now())
paramtable.SetUpdateTime(time.Now())
mmapDirPath := paramtable.Get().QueryNodeCfg.MmapDirPath.GetValue()
mmapEnabled := len(mmapDirPath) > 0
mmapEnabled := paramtable.Get().QueryNodeCfg.MmapEnabled.GetAsBool()
node.UpdateStateCode(commonpb.StateCode_Healthy)
registry.GetInMemoryResolver().RegisterQueryNode(node.GetNodeID(), node)