mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 01:28:27 +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 <vector>
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
#include <tuple>
|
#include <tuple>
|
||||||
|
#include <boost/filesystem.hpp>
|
||||||
|
|
||||||
#include "common/ScopedTimer.h"
|
#include "common/ScopedTimer.h"
|
||||||
#include "monitor/Monitor.h"
|
#include "monitor/Monitor.h"
|
||||||
@ -110,7 +111,9 @@ BsonInvertedIndex::LoadIndex(const std::vector<std::string>& index_files,
|
|||||||
for (auto& file : index_files) {
|
for (auto& file : index_files) {
|
||||||
auto remote_prefix =
|
auto remote_prefix =
|
||||||
disk_file_manager_->GetRemoteJsonStatsLogPrefix();
|
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
|
// cache shared_key_index/... to disk
|
||||||
disk_file_manager_->CacheJsonStatsSharedIndexToDisk(remote_files,
|
disk_file_manager_->CacheJsonStatsSharedIndexToDisk(remote_files,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user