Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
af15b285
Commit
af15b285
authored
Sep 25, 2019
by
filipecosta90
Browse files
[fix] fixed the un-refactor bug.
parent
733280d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/module.c
View file @
af15b285
...
@@ -1126,9 +1126,10 @@ int RM_ReplyWithLongLong(RedisModuleCtx *ctx, long long ll) {
...
@@ -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;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment