mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-05 05:18:52 +08:00
fix(db): fix cache error after load file from disk part 2
Former-commit-id: e684913260dee0f4e5c39729f12e29925c1fb118
This commit is contained in:
parent
59544b0341
commit
a6853a5726
@ -64,9 +64,10 @@ Status FaissExecutionEngine<IndexTrait>::Serialize() {
|
||||
template<class IndexTrait>
|
||||
Status FaissExecutionEngine<IndexTrait>::Load() {
|
||||
auto index = zilliz::vecwise::cache::CpuCacheMgr::GetInstance()->GetIndex(location_);
|
||||
bool to_cache;
|
||||
bool to_cache = false;
|
||||
if (!index) {
|
||||
index = read_index(location_);
|
||||
to_cache = true;
|
||||
LOG(DEBUG) << "Disk io from: " << location_;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user