diff options
author | dormando <dormando@rydia.net> | 2023-03-08 17:30:53 -0800 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2023-03-11 18:19:23 -0800 |
commit | c04701654413719d4abd7645c6d7b3fba4255e85 (patch) | |
tree | d415716c5ce3f9290c473bd5e82df4884bd5ab1d /logger.c | |
parent | aef5b580a5b1528cd418433857adfd7a87f1b4e4 (diff) | |
download | memcached-c04701654413719d4abd7645c6d7b3fba4255e85.tar.gz |
meta: N flag changes append/prepend. ms s flag.
Sending 's' flag to metaset now returns the size of the item stored.
Useful if you want to know how large an append/prepended item now is.
If the 'N' flag is supplied while in append/prepend mode, allows
autovivifying (with exptime supplied from N) for append/prepend style
keys that don't need headers created first.
Diffstat (limited to 'logger.c')
-rw-r--r-- | logger.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -206,9 +206,9 @@ static int _logger_parse_ise(logentry *e, char *scratch) { const char * const status_map[] = { "not_stored", "stored", "exists", "not_found", "too_large", "no_memory" }; const char * const cmd_map[] = { - "null", "add", "set", "replace", "append", "prepend", "cas" }; + "null", "add", "set", "replace", "append", "prepend", "cas", "append", "prepend" }; - if (le->cmd <= 6) + if (le->cmd <= 8) cmd = cmd_map[le->cmd]; uriencode(le->key, keybuf, le->nkey, KEY_MAX_URI_ENCODED_LENGTH); |