[fix] fixed the un-refactor bug.
This commit is contained in:
parent
26452e0d85
commit
02ddcc0c78
@ -1126,9 +1126,10 @@ int RM_ReplyWithLongLong(RedisModuleCtx *ctx, long long ll) {
|
|||||||
int replyWithStatus(RedisModuleCtx *ctx, const char *msg, char *prefix) {
|
int replyWithStatus(RedisModuleCtx *ctx, const char *msg, char *prefix) {
|
||||||
client *c = moduleGetReplyClient(ctx);
|
client *c = moduleGetReplyClient(ctx);
|
||||||
if (c == NULL) return REDISMODULE_OK;
|
if (c == NULL) return REDISMODULE_OK;
|
||||||
const size_t len = strlen(msg);
|
const size_t msgLen = strlen(msg);
|
||||||
addReplyProto(c,"-",1);
|
const size_t prefixLen = strlen(prefix);
|
||||||
addReplyProto(c,msg,len);
|
addReplyProto(c,prefix,prefixLen);
|
||||||
|
addReplyProto(c,msg,msgLen);
|
||||||
addReplyProto(c,"\r\n",2);
|
addReplyProto(c,"\r\n",2);
|
||||||
return REDISMODULE_OK;
|
return REDISMODULE_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user