Skip to content

Commit fed884c

Browse files
committed
CLEANUP: Used SUBCOMMAND_TOKEN macro when process config command.
1 parent c521b76 commit fed884c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

memcached.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9306,7 +9306,7 @@ static void process_config_zkfailstop_command(conn *c, token_t *tokens, const si
93069306
sprintf(buf, "zkfailstop %s\r\nEND", arcus_zk_get_failstop() ? "on" : "off");
93079307
out_string(c, buf);
93089308
} else if (ntokens == 4) {
9309-
const char *config = tokens[COMMAND_TOKEN+2].value;
9309+
const char *config = tokens[SUBCOMMAND_TOKEN+1].value;
93109310
bool zkfailstop;
93119311
if (strcmp(config, "on") == 0)
93129312
zkfailstop = true;
@@ -9711,7 +9711,7 @@ static void process_config_auth_command(conn *c, token_t *tokens, const size_t n
97119711
sprintf(buf, "auth %s\r\nEND", settings.require_sasl ? "on" : "off");
97129712
out_string(c, buf);
97139713
} else if (ntokens == 4) {
9714-
const char *config = tokens[COMMAND_TOKEN+2].value;
9714+
const char *config = tokens[SUBCOMMAND_TOKEN+1].value;
97159715
if (strcmp(config, "on") == 0) {
97169716
pthread_t tid;
97179717
int ret = pthread_create(&tid, NULL, init_sasl_thread, NULL);

0 commit comments

Comments
 (0)