fix: Mmap could be enabled on ScaNN index (#30914)

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

Signed-off-by: sunby <sunbingyi1992@gmail.com>
pull/30561/head
Bingyi Sun 2024-03-01 10:56:59 +08:00 committed by GitHub
parent 3633923bb7
commit 8addd75481
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -46,7 +46,8 @@ func IsMmapSupported(indexType IndexType) bool {
indexType == IndexFaissIvfSQ8 ||
indexType == IndexFaissBinIDMap ||
indexType == IndexFaissBinIvfFlat ||
indexType == IndexHNSW
indexType == IndexHNSW ||
indexType == IndexScaNN
}
func IsDiskIndex(indexType IndexType) bool {