summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Yen <steve.yen@gmail.com>2009-01-26 22:37:08 -0800
committerSteve Yen <steve.yen@gmail.com>2009-03-02 08:48:26 -0800
commit6e53db56fb852ab6a53c68b2c8b3408baf95cf30 (patch)
tree33bffa59d1296f2be2e12b90c9b4df74df0e1bed
parent1a070652ba97045c73b5e0f5237d35ea017bb04b (diff)
downloadmemcached-6e53db56fb852ab6a53c68b2c8b3408baf95cf30.tar.gz
memcached-tool move handles CLIENT_ERROR response
The memcached-tool 'move' command fixed to handle CLIENT_ERROR response from server, which signals that the server was probably not compiled with slab reassignment.
-rwxr-xr-xscripts/memcached-tool3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/memcached-tool b/scripts/memcached-tool
index 385ca85..f779e88 100755
--- a/scripts/memcached-tool
+++ b/scripts/memcached-tool
@@ -77,6 +77,9 @@ if ($mode eq "move") {
print "Page busy, retrying...\n";
sleep 1;
+ } elsif ($res =~ "CLIENT_ERROR") {
+ print "Error: CLIENT_ERROR; perhaps slab reassignment is not enabled.\n";
+ exit;
}
}