Skip to content

Commit

Permalink
Issue #1464
Browse files Browse the repository at this point in the history
  • Loading branch information
yatsukhnenko committed Nov 22, 2018
1 parent 91bd742 commit 7274991
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cluster_library.c
Original file line number Diff line number Diff line change
Expand Up @@ -1384,6 +1384,11 @@ PHP_REDIS_API short cluster_send_command(redisCluster *c, short slot, const char
int resp, timedout = 0;
long msstart;

if (!SLOT(c, slot)) {
zend_throw_exception_ex(redis_cluster_exception_ce, 0,
"The slot %d is not covered by any node in this cluster", slot);
return -1;
}
/* Set the slot we're operating against as well as it's socket. These can
* change during our request loop if we have a master failure and are
* configured to fall back to slave nodes, or if we have to fall back to
Expand Down

0 comments on commit 7274991

Please sign in to comment.