summaryrefslogtreecommitdiff
path: root/slabs.h
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2012-01-03 18:27:52 -0800
committerdormando <dormando@rydia.net>2012-01-03 19:04:04 -0800
commit8c1c18eda8f56a23a88ddfe7e9cc3d58e461af22 (patch)
tree054470a656e575460f41424f76307cbd8bcbedbb /slabs.h
parent99fc043af90170757a34802bd96111999013d0bc (diff)
downloadmemcached-8c1c18eda8f56a23a88ddfe7e9cc3d58e461af22.tar.gz
no same-class reassignment, better errors
Add human parseable strings to the errors for slabs ressign. Also prevent reassigning memory to the same source and destination.
Diffstat (limited to 'slabs.h')
-rw-r--r--slabs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/slabs.h b/slabs.h
index ea83e45..730474b 100644
--- a/slabs.h
+++ b/slabs.h
@@ -38,7 +38,7 @@ void stop_slab_maintenance_thread(void);
enum reassign_result_type {
REASSIGN_OK=0, REASSIGN_RUNNING, REASSIGN_BADCLASS, REASSIGN_NOSPARE,
- REASSIGN_DEST_NOT_FULL, REASSIGN_SRC_NOT_SAFE
+ REASSIGN_DEST_NOT_FULL, REASSIGN_SRC_NOT_SAFE, REASSIGN_SRC_DST_SAME
};
enum reassign_result_type slabs_reassign(int src, int dst);