Lines Matching refs:comm
1009 int comm = c->cmd; in complete_nread_ascii() local
1048 ret = store_item(it, comm, c); in complete_nread_ascii()
2532 static void _store_item_copy_data(int comm, item *old_it, item *new_it, item *add_it) { in _store_item_copy_data() argument
2533 if (comm == NREAD_APPEND) { in _store_item_copy_data()
2559 enum store_item_type do_store_item(item *it, int comm, conn *c, const uint32_t hv) { in do_store_item() argument
2567 if (old_it != NULL && comm == NREAD_ADD) { in do_store_item()
2570 } else if (!old_it && (comm == NREAD_REPLACE in do_store_item()
2571 || comm == NREAD_APPEND || comm == NREAD_PREPEND)) in do_store_item()
2574 } else if (comm == NREAD_CAS) { in do_store_item()
2611 if (comm == NREAD_APPEND || comm == NREAD_PREPEND) { in do_store_item()
2635 _store_item_copy_data(comm, old_it, new_it, it); in do_store_item()
2663 stored, comm, ITEM_key(it), it->nkey); in do_store_item()
3334 static void process_update_command(conn *c, token_t *tokens, const size_t ntokens, int comm, bool h… in process_update_command() argument
3402 NULL, status, comm, key, nkey); in process_update_command()
3409 if (comm == NREAD_SET) { in process_update_command()
3424 c->cmd = comm; in process_update_command()
3787 int comm; in process_command() local
3817 ((strcmp(tokens[COMMAND_TOKEN].value, "add") == 0 && (comm = NREAD_ADD)) || in process_command()
3818 (strcmp(tokens[COMMAND_TOKEN].value, "set") == 0 && (comm = NREAD_SET)) || in process_command()
3819 (strcmp(tokens[COMMAND_TOKEN].value, "replace") == 0 && (comm = NREAD_REPLACE)) || in process_command()
3820 (strcmp(tokens[COMMAND_TOKEN].value, "prepend") == 0 && (comm = NREAD_PREPEND)) || in process_command()
3821 (strcmp(tokens[COMMAND_TOKEN].value, "append") == 0 && (comm = NREAD_APPEND)) )) { in process_command()
3823 process_update_command(c, tokens, ntokens, comm, false); in process_command()
3825 …== 7 || ntokens == 8) && (strcmp(tokens[COMMAND_TOKEN].value, "cas") == 0 && (comm = NREAD_CAS))) { in process_command()
3827 process_update_command(c, tokens, ntokens, comm, true); in process_command()