mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-08 01:58:34 +08:00
enhance: add force rebuild index configuration (#41473)
issue: #41431 Signed-off-by: xianliang.li <xianliang.li@zilliz.com>
This commit is contained in:
parent
fb612c765c
commit
358bc150df
@ -14,7 +14,7 @@
|
|||||||
# Update KNOWHERE_VERSION for the first occurrence
|
# Update KNOWHERE_VERSION for the first occurrence
|
||||||
milvus_add_pkg_config("knowhere")
|
milvus_add_pkg_config("knowhere")
|
||||||
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES "")
|
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES "")
|
||||||
set( KNOWHERE_VERSION 0191ec6 )
|
set( KNOWHERE_VERSION 5734ebe )
|
||||||
set( GIT_REPOSITORY "https://github.com/zilliztech/knowhere.git")
|
set( GIT_REPOSITORY "https://github.com/zilliztech/knowhere.git")
|
||||||
message(STATUS "Knowhere repo: ${GIT_REPOSITORY}")
|
message(STATUS "Knowhere repo: ${GIT_REPOSITORY}")
|
||||||
message(STATUS "Knowhere version: ${KNOWHERE_VERSION}")
|
message(STATUS "Knowhere version: ${KNOWHERE_VERSION}")
|
||||||
|
|||||||
@ -42,9 +42,9 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func getCurrentIndexVersion(v int32) int32 {
|
func getCurrentIndexVersion(v int32) int32 {
|
||||||
cCurrent := int32(C.GetCurrentIndexVersion())
|
cMaximum := int32(C.GetMaximumIndexVersion())
|
||||||
if cCurrent < v {
|
if cMaximum < v {
|
||||||
return cCurrent
|
return cMaximum
|
||||||
}
|
}
|
||||||
return v
|
return v
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user