mirror of https://github.com/milvus-io/milvus.git
fix: mmap does not work on index load (#31228)
issue: https://github.com/milvus-io/milvus/issues/31101 Signed-off-by: sunby <sunbingyi1992@gmail.com>pull/31271/head^2
parent
776709e5ff
commit
17b4938985
|
@ -73,7 +73,7 @@ func (li *LoadIndexInfo) appendLoadIndexInfo(ctx context.Context, indexInfo *que
|
|||
indexPaths := indexInfo.IndexFilePaths
|
||||
|
||||
indexParams := funcutil.KeyValuePair2Map(indexInfo.IndexParams)
|
||||
enableMmap := indexParams[common.MmapEnabledKey] == "true"
|
||||
enableMmap := common.IsMmapEnabled(indexInfo.IndexParams...)
|
||||
// as Knowhere reports error if encounter a unknown param, we need to delete it
|
||||
delete(indexParams, common.MmapEnabledKey)
|
||||
|
||||
|
|
Loading…
Reference in New Issue