summaryrefslogtreecommitdiff
path: root/extstore.h
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2017-09-27 23:05:29 -0700
committerdormando <dormando@rydia.net>2017-11-28 14:18:05 -0800
commitce79ff67c08f1eb33f87da58289db3949c639a43 (patch)
treeee5d86ad51a4c2842ef2b817835389cd7891c8bf /extstore.h
parent2891d61f699983a4e8c4458fc704d8ffb001d23c (diff)
downloadmemcached-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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/extstore.h b/extstore.h
index 1088101..6c96811 100644
--- a/extstore.h
+++ b/extstore.h
@@ -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