mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-06 17:18:35 +08:00
fix:remove duplicated '/' in jsonstats path (#44939)
#44950 Signed-off-by: luzhang <luzhang@zilliz.com> Co-authored-by: luzhang <luzhang@zilliz.com>
This commit is contained in:
parent
34f54da155
commit
05df48fbe4
@ -19,6 +19,7 @@
|
||||
#include <vector>
|
||||
#include <unordered_map>
|
||||
#include <tuple>
|
||||
#include <boost/filesystem.hpp>
|
||||
|
||||
#include "common/ScopedTimer.h"
|
||||
#include "monitor/Monitor.h"
|
||||
@ -110,7 +111,9 @@ BsonInvertedIndex::LoadIndex(const std::vector<std::string>& index_files,
|
||||
for (auto& file : index_files) {
|
||||
auto remote_prefix =
|
||||
disk_file_manager_->GetRemoteJsonStatsLogPrefix();
|
||||
remote_files.emplace_back(remote_prefix + "/" + file);
|
||||
boost::filesystem::path full_path =
|
||||
boost::filesystem::path(remote_prefix) / file;
|
||||
remote_files.emplace_back(full_path.string());
|
||||
}
|
||||
// cache shared_key_index/... to disk
|
||||
disk_file_manager_->CacheJsonStatsSharedIndexToDisk(remote_files,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user