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
67732bac
Unverified
Commit
67732bac
authored
Jul 05, 2021
by
uriyage
Committed by
GitHub
Jul 05, 2021
Browse files
redis-cli: reset dbnum and tx prompt state after RESET (#9096)
parent
a418a2d3
Changes
1
Show whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
67732bac
...
@@ -1488,6 +1488,13 @@ static int cliSendCommand(int argc, char **argv, long repeat) {
...
@@ -1488,6 +1488,13 @@ static int cliSendCommand(int argc, char **argv, long repeat) {
config.in_multi = 0;
config.in_multi = 0;
config.input_dbnum = config.dbnum = config.pre_multi_dbnum;
config.input_dbnum = config.dbnum = config.pre_multi_dbnum;
cliRefreshPrompt();
cliRefreshPrompt();
} else if (!strcasecmp(command,"reset") && argc == 1 &&
config.last_cmd_type != REDIS_REPLY_ERROR) {
config.in_multi = 0;
config.dbnum = 0;
config.input_dbnum = 0;
config.resp3 = 0;
cliRefreshPrompt();
}
}
}
}
if (config.cluster_reissue_command){
if (config.cluster_reissue_command){
...
...
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