From c0e818ab080f8c07eb1885945eea4a42f3ca3d29 Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 10 Mar 2014 15:26:10 +0100 Subject: [PATCH] Cluster: evalGetKey() added for EVAL/EVALSHA. Previously we used zunionInterGetKeys(), however after this function was fixed to account for the destination key (not needed when the API was designed for "diskstore") the two set of commands can no longer be served by an unique keys-extraction function. --- src/db.c | 23 +++++++++++++++++++++++ src/redis.c | 4 ++-- src/redis.h | 1 + 3 files changed, 26 insertions(+), 2 deletions(-) diff --git a/src/db.c b/src/db.c index 243ed195f..913e03a00 100644 --- a/src/db.c +++ b/src/db.c @@ -998,6 +998,29 @@ int *zunionInterGetKeys(struct redisCommand *cmd, robj **argv, int argc, int *nu return keys; } +/* Helper function to extract keys from the following commands: + * EVAL