summaryrefslogtreecommitdiff
path: root/slab_automove_extstore.h
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2017-12-06 19:47:00 -0800
committerdormando <dormando@rydia.net>2017-12-07 15:28:13 -0800
commit48b07bd3200a92a82b7500b10f14843204502060 (patch)
tree65e1619e4374de044ffc226119a108df4068e1e4 /slab_automove_extstore.h
parentbb1080bb9f8ab5271699bb84eb90de1fcf9ed695 (diff)
downloadmemcached-48b07bd3200a92a82b7500b10f14843204502060.tar.gz
extstore: C version of automove algorithm
couple TODO items left for a new issue I thought of. Also hardcoded memory buffer size which should be fixed. also need to change the "free and re-init" logic to use a boolean in case any related option changes.
Diffstat (limited to 'slab_automove_extstore.h')
-rw-r--r--slab_automove_extstore.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/slab_automove_extstore.h b/slab_automove_extstore.h
new file mode 100644
index 0000000..8b437b1
--- /dev/null
+++ b/slab_automove_extstore.h
@@ -0,0 +1,8 @@
+#ifndef SLAB_AUTOMOVE_EXTSTORE_H
+#define SLAB_AUTOMOVE_EXTSTORE_H
+
+void *slab_automove_extstore_init(struct settings *settings);
+void slab_automove_extstore_free(void *arg);
+void slab_automove_extstore_run(void *arg, int *src, int *dst);
+
+#endif