mirror of
https://github.com/fluencelabs/redis
synced 2025-04-08 10:28:04 +00:00
Re-introduce the interactive field so we can reconnect in interactive mode
This commit is contained in:
parent
4b93e5e267
commit
5d15b5207d
@ -56,6 +56,7 @@ static struct config {
|
|||||||
long repeat;
|
long repeat;
|
||||||
int dbnum;
|
int dbnum;
|
||||||
int argn_from_stdin;
|
int argn_from_stdin;
|
||||||
|
int interactive;
|
||||||
int shutdown;
|
int shutdown;
|
||||||
int monitor_mode;
|
int monitor_mode;
|
||||||
int pubsub_mode;
|
int pubsub_mode;
|
||||||
@ -393,6 +394,7 @@ static void repl() {
|
|||||||
char *line;
|
char *line;
|
||||||
sds *argv;
|
sds *argv;
|
||||||
|
|
||||||
|
config.interactive = 1;
|
||||||
while((line = linenoise("redis> ")) != NULL) {
|
while((line = linenoise("redis> ")) != NULL) {
|
||||||
if (line[0] != '\0') {
|
if (line[0] != '\0') {
|
||||||
argv = sdssplitargs(line,&argc);
|
argv = sdssplitargs(line,&argc);
|
||||||
@ -440,6 +442,7 @@ int main(int argc, char **argv) {
|
|||||||
config.repeat = 1;
|
config.repeat = 1;
|
||||||
config.dbnum = 0;
|
config.dbnum = 0;
|
||||||
config.argn_from_stdin = 0;
|
config.argn_from_stdin = 0;
|
||||||
|
config.interactive = 0;
|
||||||
config.shutdown = 0;
|
config.shutdown = 0;
|
||||||
config.monitor_mode = 0;
|
config.monitor_mode = 0;
|
||||||
config.pubsub_mode = 0;
|
config.pubsub_mode = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user