Skip to content

Commit

Permalink
Remove API valkeyClusterSetOptionAddNode
Browse files Browse the repository at this point in the history
valkeyClusterSetOptionAddNodes can be used instead.

Signed-off-by: Björn Svensson <bjorn.a.svensson@est.tech>
  • Loading branch information
bjosv committed Oct 21, 2024
1 parent a97a74e commit e844649
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/migration-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ The type `sds` is removed from the public API.
### Removed API functions

* `redisClusterSetMaxRedirect` removed and replaced with `valkeyClusterSetOptionMaxRetry`.
* `redisClusterSetOptionAddNode` removed and replaced with `valkeyClusterSetOptionAddNodes`.
* `redisClusterSetOptionConnectBlock` removed since it was deprecated.
* `redisClusterSetOptionConnectNonBlock` removed since it was deprecated.
* `parse_cluster_nodes` removed from API, for internal use only.
Expand Down
1 change: 0 additions & 1 deletion include/valkey/cluster.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ valkeyClusterContext *valkeyClusterContextInit(void);
void valkeyClusterFree(valkeyClusterContext *cc);

/* Configuration options */
int valkeyClusterSetOptionAddNode(valkeyClusterContext *cc, const char *addr);
int valkeyClusterSetOptionAddNodes(valkeyClusterContext *cc, const char *addrs);
int valkeyClusterSetOptionUsername(valkeyClusterContext *cc,
const char *username);
Expand Down
2 changes: 1 addition & 1 deletion src/cluster.c
Original file line number Diff line number Diff line change
Expand Up @@ -1374,7 +1374,7 @@ valkeyClusterContext *valkeyClusterConnectWithTimeout(const char *addrs,
return valkeyClusterConnectInternal(cc, addrs);
}

int valkeyClusterSetOptionAddNode(valkeyClusterContext *cc, const char *addr) {
static int valkeyClusterSetOptionAddNode(valkeyClusterContext *cc, const char *addr) {
dictEntry *node_entry;
valkeyClusterNode *node = NULL;
int port, ret;
Expand Down

0 comments on commit e844649

Please sign in to comment.