diff options
author | michael-grunder <michael.grunder@gmail.com> | 2022-10-31 01:38:22 +0300 |
---|---|---|
committer | Michael Grunder <michael.grunder@gmail.com> | 2022-10-31 02:19:22 +0300 |
commit | fb3fb6f83f1e2b41a1f3054be1a2128b2d2b43b8 (patch) | |
tree | e34279c64f24be3a31f5d4a9d0aaac373c4cbd51 /redis_commands.c | |
parent | df50b2ad2d443c19b90a5000f6e0a976b07382b3 (diff) |
Copy docblock and fix DB option.
Diffstat (limited to 'redis_commands.c')
-rw-r--r-- | redis_commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/redis_commands.c b/redis_commands.c index 7a9812fc..b17c7d59 100644 --- a/redis_commands.c +++ b/redis_commands.c @@ -5178,7 +5178,7 @@ redis_copy_cmd(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock, } ZEND_HASH_FOREACH_END(); } - REDIS_CMD_INIT_SSTR_STATIC(&cmdstr, 2 + (db > -1) + replace, "COPY"); + REDIS_CMD_INIT_SSTR_STATIC(&cmdstr, 2 + (db > -1 ? 2 : 0) + replace, "COPY"); redis_cmd_append_sstr(&cmdstr, src, src_len); redis_cmd_append_sstr(&cmdstr, dst, dst_len); |