From 717021b4b123451e131674706be1d14194fc4b56 Mon Sep 17 00:00:00 2001 From: chasingegg Date: Fri, 17 Jan 2025 16:58:03 +0800 Subject: [PATCH] fix: correct remote centroids path in clustering compaction Signed-off-by: chasingegg --- internal/core/src/clustering/KmeansClustering.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/core/src/clustering/KmeansClustering.h b/internal/core/src/clustering/KmeansClustering.h index 151ef5e3f5788..a25234371c480 100644 --- a/internal/core/src/clustering/KmeansClustering.h +++ b/internal/core/src/clustering/KmeansClustering.h @@ -58,20 +58,20 @@ class KmeansClustering { return cluster_result_; } - // ut inline std::string GetRemoteCentroidsObjectPrefix() const { auto index_meta_ = file_manager_->GetIndexMeta(); auto field_meta_ = file_manager_->GetFieldDataMeta(); boost::filesystem::path prefix = file_manager_->GetChunkManager()->GetRootPath(); - boost::filesystem::path path = + boost::filesystem::path path = std::string(ANALYZE_ROOT_PATH); + boost::filesystem::path path1 = std::to_string(index_meta_.build_id) + "/" + std::to_string(index_meta_.index_version) + "/" + std::to_string(field_meta_.collection_id) + "/" + std::to_string(field_meta_.partition_id) + "/" + std::to_string(field_meta_.field_id); - return (prefix / path).string(); + return (prefix / path / path1).string(); } inline std::string