Skip to content

Commit c23c7ff

Browse files
committed
second commit
1 parent 6db1305 commit c23c7ff

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/db.c

+1-4
Original file line numberDiff line numberDiff line change
@@ -873,8 +873,7 @@ void selectCommand(client *c) {
873873

874874
void randomWithCountCommand(client *c) {
875875
long l;
876-
unsigned long count, size;
877-
int uniq = 1;
876+
unsigned long count;
878877
unsigned long numkeys = 0;
879878

880879
if (getRangeLongFromObjectOrReply(c, c->argv[2], -LONG_MAX, LONG_MAX, &l, NULL) != C_OK) return;
@@ -883,7 +882,6 @@ void randomWithCountCommand(client *c) {
883882
} else {
884883
/* A negative count means: return the same elements multiple times */
885884
count = -l;
886-
uniq = 0;
887885
}
888886

889887
/* If count is zero, serve it ASAP to avoid special cases later. */
@@ -893,7 +891,6 @@ void randomWithCountCommand(client *c) {
893891
}
894892

895893
int maxtries = 100 * count;
896-
int allvolatile = kvstoreSize(c->db->keys) == kvstoreSize(c->db->expires);
897894

898895
void *replylen = addReplyDeferredLen(c);
899896
dict *section_dict = dictCreate(&stringSetDictType);

0 commit comments

Comments
 (0)