mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
Fix mac build error (#16415)
Signed-off-by: yudong.cai <yudong.cai@zilliz.com>
This commit is contained in:
parent
e2eed6fd94
commit
6c4d497d73
@ -87,7 +87,9 @@ AppendIndex(CLoadIndexInfo c_load_index_info, CBinarySet c_binary_set) {
|
||||
AssertInfo(find_index_type == true, "Can't find index type in index_params");
|
||||
knowhere::IndexMode mode;
|
||||
if (find_index_mode) {
|
||||
mode = index_params["index_mode"] == "CPU" ? knowhere::IndexMode::MODE_CPU : knowhere::IndexMode::MODE_GPU;
|
||||
std::string index_mode = index_params["index_mode"];
|
||||
mode = (index_mode == "CPU" || index_mode == "cpu") ? knowhere::IndexMode::MODE_CPU
|
||||
: knowhere::IndexMode::MODE_GPU;
|
||||
} else {
|
||||
mode = knowhere::IndexMode::MODE_CPU;
|
||||
}
|
||||
|
||||
@ -259,8 +259,8 @@ TEST(CApiTest, DeleteTest) {
|
||||
auto collection = NewCollection(get_default_schema_config());
|
||||
auto segment = NewSegment(collection, Growing, -1);
|
||||
|
||||
long delete_row_ids[] = {100000, 100001, 100002};
|
||||
unsigned long delete_timestamps[] = {0, 0, 0};
|
||||
int64_t delete_row_ids[] = {100000, 100001, 100002};
|
||||
uint64_t delete_timestamps[] = {0, 0, 0};
|
||||
|
||||
auto offset = PreDelete(segment, 3);
|
||||
|
||||
@ -635,8 +635,8 @@ TEST(CApiTest, GetDeletedCountTest) {
|
||||
auto collection = NewCollection(get_default_schema_config());
|
||||
auto segment = NewSegment(collection, Growing, -1);
|
||||
|
||||
long delete_row_ids[] = {100000, 100001, 100002};
|
||||
unsigned long delete_timestamps[] = {0, 0, 0};
|
||||
int64_t delete_row_ids[] = {100000, 100001, 100002};
|
||||
uint64_t delete_timestamps[] = {0, 0, 0};
|
||||
|
||||
auto offset = PreDelete(segment, 3);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user