mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 01:28:27 +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
|
||||
milvus_add_pkg_config("knowhere")
|
||||
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")
|
||||
message(STATUS "Knowhere repo: ${GIT_REPOSITORY}")
|
||||
message(STATUS "Knowhere version: ${KNOWHERE_VERSION}")
|
||||
|
||||
@ -42,9 +42,9 @@ import (
|
||||
)
|
||||
|
||||
func getCurrentIndexVersion(v int32) int32 {
|
||||
cCurrent := int32(C.GetCurrentIndexVersion())
|
||||
if cCurrent < v {
|
||||
return cCurrent
|
||||
cMaximum := int32(C.GetMaximumIndexVersion())
|
||||
if cMaximum < v {
|
||||
return cMaximum
|
||||
}
|
||||
return v
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user