fix: fix mmap enable log (#31439)

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

Signed-off-by: sunby <sunbingyi1992@gmail.com>
This commit is contained in:
Bingyi Sun 2024-03-20 19:17:05 +08:00 committed by GitHub
parent a647b84f3e
commit 0fe2ac4c3a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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)