diff options
author | dormando <dormando@rydia.net> | 2018-05-22 18:06:21 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2018-05-22 19:26:28 -0700 |
commit | 91102e15c86c5ed7010670a58f151734a196cc11 (patch) | |
tree | 78840c57b63d8b2ca033c2071c0f7bd86ab87e3d /storage.h | |
parent | f939a8468cb4b9a219a1a34cdcef5338a8b84a77 (diff) | |
download | memcached-91102e15c86c5ed7010670a58f151734a196cc11.tar.gz |
alignment and 32bit fixes for extstore
memory alignment when reading header data back.
left "32" in a few places that should've at least been a define, is now
properly an offsetof. used for skipping crc32 for dynamic parts of the item
headers.
Diffstat (limited to 'storage.h')
-rw-r--r-- | storage.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -6,4 +6,7 @@ int start_storage_compact_thread(void *arg); void storage_compact_pause(void); void storage_compact_resume(void); +// Ignore pointers and header bits from the CRC +#define STORE_OFFSET offsetof(item, nbytes) + #endif |