Skip to content

Commit

Permalink
Fix support for STREAM to the RedisCluster::type command
Browse files Browse the repository at this point in the history
  • Loading branch information
yatsukhnenko committed May 11, 2019
1 parent f63b87f commit 068ce97
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cluster_library.c
Original file line number Diff line number Diff line change
Expand Up @@ -1808,6 +1808,8 @@ PHP_REDIS_API void cluster_type_resp(INTERNAL_FUNCTION_PARAMETERS, redisCluster
CLUSTER_RETURN_LONG(c, REDIS_HASH);
} else if (strncmp(c->line_reply, "zset", 4) == 0) {
CLUSTER_RETURN_LONG(c, REDIS_ZSET);
} else if (strncmp(c->line_reply, "+stream", 7) == 0) {
CLUSTER_RETURN_LONG(c, REDIS_STREAM);
} else {
CLUSTER_RETURN_LONG(c, REDIS_NOT_FOUND);
}
Expand Down

0 comments on commit 068ce97

Please sign in to comment.