Sitelet https://github.com/phpredis/phpredis/commit/72749916
Skip to content

Commit 7274991

Browse files
committed
Issue #1464
1 parent 91bd742 commit 7274991

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎cluster_library.c‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1384,6 +1384,11 @@ PHP_REDIS_API short cluster_send_command(redisCluster *c, short slot, const char
13841384
int resp, timedout = 0;
13851385
long msstart;
13861386

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

0 commit comments

Comments
 (0)