diff options
author | dormando <dormando@rydia.net> | 2017-10-14 18:41:59 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2017-11-28 14:18:05 -0800 |
commit | 6fa9b31bbf111dbb99672595c8295cf77a3bbd5d (patch) | |
tree | 420a94f913881479ce226f76a8f8695529781eec /storage.c | |
parent | 889938405df7e46f31ab0bbafee1fd210372f249 (diff) | |
download | memcached-6fa9b31bbf111dbb99672595c8295cf77a3bbd5d.tar.gz |
extstore: minor bugfixes
refuse to start if inline_ascii_resp is enabled, due to it breaking the item
header objects.
actually use iovst value passed during binprot requests
make the item flags converters the same (strtoul can eat leading space). need
to replace them with a function still.
Diffstat (limited to 'storage.c')
-rw-r--r-- | storage.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -42,7 +42,7 @@ int lru_maintainer_store(void *storage, const int clsid) { (item_age == 0 || current_time - it->time > item_age)) { // FIXME: flag conversion again if (settings.inline_ascii_response) { - flags = (uint32_t) strtoul(ITEM_suffix(it)+1, (char **) NULL, 10); + flags = (uint32_t) strtoul(ITEM_suffix(it), (char **) NULL, 10); } else if (it->nsuffix > 0) { flags = *((uint32_t *)ITEM_suffix(it)); } else { |