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:
zhagnlu 2025-10-20 14:06:03 +08:00 committed by GitHub
parent 34f54da155
commit 05df48fbe4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,