mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-03 17:31:58 +08:00
Fix HNSW and RNSG index files size (#2618)
Signed-off-by: shengjun.li <shengjun.li@zilliz.com>
This commit is contained in:
parent
583458836f
commit
48e8cd36c2
@ -10,6 +10,7 @@ Please mark all change in change log and use the issue from GitHub
|
||||
- \#2578 Result count doesn't match target vectors count
|
||||
- \#2557 fix random crash of INSERT_DUPLICATE_ID case
|
||||
- \#2598 fix Milvus docker image report illegal instruction
|
||||
- \#2617 Fix HNSW and RNSG index files size
|
||||
|
||||
## Feature
|
||||
|
||||
|
||||
@ -49,7 +49,7 @@ IndexHNSW::Serialize(const Config& config) {
|
||||
std::shared_ptr<uint8_t[]> data(writer.data_);
|
||||
|
||||
BinarySet res_set;
|
||||
res_set.Append("HNSW", data, writer.total);
|
||||
res_set.Append("HNSW", data, writer.rp);
|
||||
return res_set;
|
||||
} catch (std::exception& e) {
|
||||
KNOWHERE_THROW_MSG(e.what());
|
||||
|
||||
@ -47,7 +47,7 @@ NSG::Serialize(const Config& config) {
|
||||
std::shared_ptr<uint8_t[]> data(writer.data_);
|
||||
|
||||
BinarySet res_set;
|
||||
res_set.Append("NSG", data, writer.total);
|
||||
res_set.Append("NSG", data, writer.rp);
|
||||
return res_set;
|
||||
} catch (std::exception& e) {
|
||||
KNOWHERE_THROW_MSG(e.what());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user