Skip to content

Commit

Permalink
fix: correct remote centroids path in clustering compaction (#39399)
Browse files Browse the repository at this point in the history
issue: #39353
pr: #39398

Signed-off-by: chasingegg <[email protected]>
  • Loading branch information
chasingegg authored Jan 20, 2025
1 parent c9b0859 commit efe7690
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/core/src/clustering/KmeansClustering.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit efe7690

Please sign in to comment.