mirror of https://github.com/milvus-io/milvus.git
enhance: use local path as mmap file path if no mmap path provided (#28992)
the mmap mode isn't controlled by the config anymore, so we don't require user to set it when they enabled mmap mode. Signed-off-by: yah01 <yah2er0ne@outlook.com>pull/29410/head
parent
a0e1a1eb31
commit
1997fd150c
|
@ -234,7 +234,11 @@ func (node *QueryNode) InitSegcore() error {
|
|||
|
||||
mmapDirPath := paramtable.Get().QueryNodeCfg.MmapDirPath.GetValue()
|
||||
if len(mmapDirPath) == 0 {
|
||||
mmapDirPath = paramtable.Get().LocalStorageCfg.Path.GetValue()
|
||||
paramtable.Get().Save(
|
||||
paramtable.Get().QueryNodeCfg.MmapDirPath.Key,
|
||||
path.Join(paramtable.Get().LocalStorageCfg.Path.GetValue(), "mmap"),
|
||||
)
|
||||
mmapDirPath = paramtable.Get().QueryNodeCfg.MmapDirPath.GetValue()
|
||||
}
|
||||
chunkCachePath := path.Join(mmapDirPath, "chunk_cache")
|
||||
policy := paramtable.Get().QueryNodeCfg.ReadAheadPolicy.GetValue()
|
||||
|
|
Loading…
Reference in New Issue