diff options
author | dormando <dormando@rydia.net> | 2012-01-03 18:27:52 -0800 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2012-01-03 19:04:04 -0800 |
commit | 8c1c18eda8f56a23a88ddfe7e9cc3d58e461af22 (patch) | |
tree | 054470a656e575460f41424f76307cbd8bcbedbb /memcached.c | |
parent | 99fc043af90170757a34802bd96111999013d0bc (diff) | |
download | memcached-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 'memcached.c')
-rw-r--r-- | memcached.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/memcached.c b/memcached.c index 496ec13..a86248f 100644 --- a/memcached.c +++ b/memcached.c @@ -3346,19 +3346,22 @@ static void process_command(conn *c, char *command) { out_string(c, "OK"); break; case REASSIGN_RUNNING: - out_string(c, "BUSY"); + out_string(c, "BUSY currently processing reassign request"); break; case REASSIGN_BADCLASS: - out_string(c, "BADCLASS"); + out_string(c, "BADCLASS invalid src or dst class id"); break; case REASSIGN_NOSPARE: - out_string(c, "NOSPARE"); + out_string(c, "NOSPARE source class has no spare pages"); break; case REASSIGN_DEST_NOT_FULL: - out_string(c, "NOTFULL"); + out_string(c, "NOTFULL dest class has spare memory"); break; case REASSIGN_SRC_NOT_SAFE: - out_string(c, "UNSAFE"); + out_string(c, "UNSAFE src class is in an unsafe state"); + break; + case REASSIGN_SRC_DST_SAME: + out_string(c, "SAME src and dst class are identical"); break; } return; |