From 05df48fbe4ff2b29909b2c25e9ee7943d0726ae0 Mon Sep 17 00:00:00 2001 From: zhagnlu Date: Mon, 20 Oct 2025 14:06:03 +0800 Subject: [PATCH] fix:remove duplicated '/' in jsonstats path (#44939) #44950 Signed-off-by: luzhang Co-authored-by: luzhang --- internal/core/src/index/json_stats/bson_inverted.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/core/src/index/json_stats/bson_inverted.cpp b/internal/core/src/index/json_stats/bson_inverted.cpp index aaba5808f1..4b4367144e 100644 --- a/internal/core/src/index/json_stats/bson_inverted.cpp +++ b/internal/core/src/index/json_stats/bson_inverted.cpp @@ -19,6 +19,7 @@ #include #include #include +#include #include "common/ScopedTimer.h" #include "monitor/Monitor.h" @@ -110,7 +111,9 @@ BsonInvertedIndex::LoadIndex(const std::vector& 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,