From 39be106baa872cdee3dbf63999c083754f55f2f1 Mon Sep 17 00:00:00 2001 From: Xu Peng Date: Tue, 30 Apr 2019 14:34:04 +0800 Subject: [PATCH] refactor(db): code optimization Former-commit-id: 320733b50aba32e5bd99853933e7e1eafdbcdbcf --- cpp/src/db/DBImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/src/db/DBImpl.cpp b/cpp/src/db/DBImpl.cpp index 88bd9b8d95..859a1d75aa 100644 --- a/cpp/src/db/DBImpl.cpp +++ b/cpp/src/db/DBImpl.cpp @@ -228,7 +228,7 @@ Status DBImpl::merge_files(const std::string& group_id, const meta::DateT& date, for (auto& file : files) { auto to_merge = zilliz::vecwise::cache::CpuCacheMgr::GetInstance()->GetIndex(file.location); if (!to_merge) { - to_merge = read_index(file.location.c_str()); + to_merge = read_index(file.location); } auto file_index = dynamic_cast(to_merge->data().get()); index->add_with_ids(file_index->ntotal, dynamic_cast(file_index->index)->xb.data(),