Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix complier warning in cluster and HNSW indexing #2436

Merged
merged 1 commit into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/commands/cmd_cluster.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions src/search/hnsw_indexer.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

namespace redis {

class HnswIndex;
struct HnswIndex;

struct HnswNode {
using NodeKey = std::string;
Expand All @@ -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 {
Expand Down
Loading