summaryrefslogtreecommitdiff
path: root/items.c
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2019-05-14 21:18:23 -0700
committerdormando <dormando@rydia.net>2019-05-20 13:14:44 -0700
commitf28cbc5e9a31c0b0910898cf082e2f2a95a0bed0 (patch)
tree2c4de47ec1ad279805836251dce03e9ca0b682ee /items.c
parent31208e8fbeceea163c2fd95dd1031ec684d88fc3 (diff)
downloadmemcached-f28cbc5e9a31c0b0910898cf082e2f2a95a0bed0.tar.gz
widen internal item flags to 16bits.
did a weird dance. nsuffix is no longer an 8bit length, replaced with ITEM_CFLAGS bit. This indicates whether there is a 32bit set of client flags in the item or not. possible after removing the inlined ascii response header via previous commit.
Diffstat (limited to 'items.c')
-rw-r--r--items.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/items.c b/items.c
index 408f394..8500f75 100644
--- a/items.c
+++ b/items.c
@@ -325,12 +325,12 @@ item *do_item_alloc(char *key, const size_t nkey, const unsigned int flags,
DEBUG_REFCNT(it, '*');
it->it_flags |= settings.use_cas ? ITEM_CAS : 0;
+ it->it_flags |= nsuffix != 0 ? ITEM_CFLAGS : 0;
it->nkey = nkey;
it->nbytes = nbytes;
memcpy(ITEM_key(it), key, nkey);
it->exptime = exptime;
memcpy(ITEM_suffix(it), &flags, sizeof(flags));
- it->nsuffix = nsuffix;
/* Initialize internal chunk. */
if (it->it_flags & ITEM_CHUNKED) {