mirror of
https://github.com/fluencelabs/redis
synced 2025-03-21 10:00:51 +00:00
parent
53d46fa712
commit
0bdeb861f4
@ -5226,6 +5226,10 @@ try_again:
|
|||||||
int socket_error = 0;
|
int socket_error = 0;
|
||||||
int del_idx = 1; /* Index of the key argument for the replicated DEL op. */
|
int del_idx = 1; /* Index of the key argument for the replicated DEL op. */
|
||||||
|
|
||||||
|
/* Allocate the new argument vector that will replace the current command,
|
||||||
|
* to propagate the MIGRATE as a DEL command (if no COPY option was given).
|
||||||
|
* We allocate num_keys+1 because the additional argument is for "DEL"
|
||||||
|
* command name itself. */
|
||||||
if (!copy) newargv = zmalloc(sizeof(robj*)*(num_keys+1));
|
if (!copy) newargv = zmalloc(sizeof(robj*)*(num_keys+1));
|
||||||
|
|
||||||
for (j = 0; j < num_keys-expired; j++) {
|
for (j = 0; j < num_keys-expired; j++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user