提交 a6853a57 编写于 作者: X Xu Peng

fix(db): fix cache error after load file from disk part 2


Former-commit-id: e684913260dee0f4e5c39729f12e29925c1fb118
上级 59544b03
......@@ -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_;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册