summaryrefslogtreecommitdiff
path: root/extstore.h
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2017-10-14 01:53:24 -0700
committerdormando <dormando@rydia.net>2017-11-28 14:18:05 -0800
commit889938405df7e46f31ab0bbafee1fd210372f249 (patch)
tree9250c8de7433e6abdf824e7b1f4610d8bee74fd0 /extstore.h
parentb95f9751d135ec25a8331f5691235f4ae40322be (diff)
downloadmemcached-889938405df7e46f31ab0bbafee1fd210372f249.tar.gz
extstore: support chunked items.
item size max must be <= wbuf_size. reads into iovecs, writes out of same iovecs.
Diffstat (limited to 'extstore.h')
-rw-r--r--extstore.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/extstore.h b/extstore.h
index 6c96811..6a6b2bd 100644
--- a/extstore.h
+++ b/extstore.h
@@ -64,6 +64,8 @@ struct _obj_io {
void *data; /* user supplied data pointer */
struct _obj_io *next;
char *buf; /* buffer of data to read or write to */
+ struct iovec *iov; /* alternatively, use this iovec */
+ unsigned int iovcnt; /* number of IOV's */
unsigned int page_version; /* page version for read mode */
unsigned int len; /* for both modes */
unsigned int offset; /* for read mode */