This is an automated email from the ASF dual-hosted git repository.
twice pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/kvrocks.git
The following commit(s) were added to refs/heads/unstable by this push:
new f6640f6f chore: fix complier warning in cluster and HNSW indexing
(#2436)
f6640f6f is described below
commit f6640f6f46fd4aeddb0b85c528c14e885bda669d
Author: anotherJJz <[email protected]>
AuthorDate: Thu Jul 18 21:57:05 2024 +0800
chore: fix complier warning in cluster and HNSW indexing (#2436)
---
src/commands/cmd_cluster.cc | 1 -
src/search/hnsw_indexer.h | 4 ++--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/commands/cmd_cluster.cc b/src/commands/cmd_cluster.cc
index e4fb2ded..a043b6d4 100644
--- a/src/commands/cmd_cluster.cc
+++ b/src/commands/cmd_cluster.cc
@@ -311,7 +311,6 @@ class CommandClusterX : public Commander {
std::string nodes_str_;
std::string dst_node_id_;
int64_t set_version_ = 0;
- int64_t slot_ = -1;
std::vector<SlotRange> slot_ranges_;
bool force_ = false;
diff --git a/src/search/hnsw_indexer.h b/src/search/hnsw_indexer.h
index 30bdf94a..0f9dbaae 100644
--- a/src/search/hnsw_indexer.h
+++ b/src/search/hnsw_indexer.h
@@ -31,7 +31,7 @@
namespace redis {
-class HnswIndex;
+struct HnswIndex;
struct HnswNode {
using NodeKey = std::string;
@@ -51,7 +51,7 @@ struct HnswNode {
rocksdb::WriteBatchBase* batch) const;
Status RemoveNeighbour(const NodeKey& neighbour_key, const SearchKey&
search_key, engine::Storage* storage,
rocksdb::WriteBatchBase* batch) const;
- friend class HnswIndex;
+ friend struct HnswIndex;
};
struct VectorItem {