diff options
author | dormando <dormando@rydia.net> | 2017-09-27 23:05:29 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2017-11-28 14:18:05 -0800 |
commit | ce79ff67c08f1eb33f87da58289db3949c639a43 (patch) | |
tree | ee5d86ad51a4c2842ef2b817835389cd7891c8bf /extstore.h | |
parent | 2891d61f699983a4e8c4458fc704d8ffb001d23c (diff) | |
download | memcached-ce79ff67c08f1eb33f87da58289db3949c639a43.tar.gz |
extstore: split write into write_request+write
write_request returns a buffer to write into, which lets us not corrupt the
active item with the hash and crc.
"technically" we can save 24 bytes per item in storage but I'll leave that
for a later optimization, in case we want to stuff more data into the header.
Diffstat (limited to 'extstore.h')
-rw-r--r-- | extstore.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -73,9 +73,9 @@ struct _obj_io { obj_io_cb cb; }; - void *extstore_init(char *fn, struct extstore_conf *cf); -int extstore_write(void *ptr, unsigned int bucket, obj_io *io); +int extstore_write_request(void *ptr, unsigned int bucket, obj_io *io); +void extstore_write(void *ptr, obj_io *io); int extstore_submit(void *ptr, obj_io *io); /* count are the number of objects being removed, bytes are the original * length of those objects. Bytes is optional but you can't track |