summaryrefslogtreecommitdiff
path: root/storage.c
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2017-10-14 18:41:59 -0700
committerdormando <dormando@rydia.net>2017-11-28 14:18:05 -0800
commit6fa9b31bbf111dbb99672595c8295cf77a3bbd5d (patch)
tree420a94f913881479ce226f76a8f8695529781eec /storage.c
parent889938405df7e46f31ab0bbafee1fd210372f249 (diff)
downloadmemcached-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage.c b/storage.c
index 8e8b33f..eb0ea95 100644
--- a/storage.c
+++ b/storage.c
@@ -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 {