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
20df1424
Unverified
Commit
20df1424
authored
Oct 23, 2022
by
qetu3790
Committed by
GitHub
Oct 23, 2022
Browse files
Fix wrong tips when the user pass wrong # of arguments to redis.set_repl(). (#11415)
redis.set_repl() needs one arg, but the tips says two.
parent
9e1b879f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/script_lua.c
View file @
20df1424
...
@@ -1054,7 +1054,7 @@ static int luaRedisSetReplCommand(lua_State *lua) {
...
@@ -1054,7 +1054,7 @@ static int luaRedisSetReplCommand(lua_State *lua) {
serverAssert
(
rctx
);
/* Only supported inside script invocation */
serverAssert
(
rctx
);
/* Only supported inside script invocation */
if
(
argc
!=
1
)
{
if
(
argc
!=
1
)
{
luaPushError
(
lua
,
"redis.set_repl() requires
two
argument
s
."
);
luaPushError
(
lua
,
"redis.set_repl() requires
one
argument."
);
return
luaError
(
lua
);
return
luaError
(
lua
);
}
}
...
...
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