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
67987369
You need to sign in or sign up before continuing.
Commit
67987369
authored
May 03, 2017
by
antirez
Browse files
Modules: remove unused var in example module.
parent
1ed2ff55
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/modules/helloworld.c
View file @
67987369
...
...
@@ -241,7 +241,6 @@ int HelloRepl1_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int a
{
REDISMODULE_NOT_USED
(
argv
);
REDISMODULE_NOT_USED
(
argc
);
RedisModuleCallReply
*
reply
;
RedisModule_AutoMemory
(
ctx
);
/* This will be replicated *after* the two INCR statements, since
...
...
@@ -258,8 +257,8 @@ int HelloRepl1_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int a
/* Using the "!" modifier we replicate the command if it
* modified the dataset in some way. */
reply
=
RedisModule_Call
(
ctx
,
"INCR"
,
"c!"
,
"foo"
);
reply
=
RedisModule_Call
(
ctx
,
"INCR"
,
"c!"
,
"bar"
);
RedisModule_Call
(
ctx
,
"INCR"
,
"c!"
,
"foo"
);
RedisModule_Call
(
ctx
,
"INCR"
,
"c!"
,
"bar"
);
RedisModule_ReplyWithLongLong
(
ctx
,
0
);
...
...
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