projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Removing all of the multi-set bits (aka the buffer code is faster, so why
[m6w6/libmemcached]
/
src
/
memrm.c
diff --git
a/src/memrm.c
b/src/memrm.c
index b8d07ba4afa6d92a0f23947068fc0b267415177c..09f58ea4d76b83eeeca69c02798b0cb11b5c982f 100644
(file)
--- a/
src/memrm.c
+++ b/
src/memrm.c
@@
-2,6
+2,7
@@
#include <unistd.h>
#include <getopt.h>
#include <memcached.h>
#include <unistd.h>
#include <getopt.h>
#include <memcached.h>
+#include <string.h>
#include "client_options.h"
#include "utilities.h"
#include "client_options.h"
#include "utilities.h"
@@
-47,8
+48,11
@@
int main(int argc, char *argv[])
if (rc != MEMCACHED_SUCCESS)
{
if (rc != MEMCACHED_SUCCESS)
{
- fprintf(stderr, "memrm: %s: memcache error %s
\n
",
+ fprintf(stderr, "memrm: %s: memcache error %s",
argv[optind], memcached_strerror(memc, rc));
argv[optind], memcached_strerror(memc, rc));
+ if (memc->cached_errno)
+ fprintf(stderr, " system error %s", strerror(memc->cached_errno));
+ fprintf(stderr, "\n");
}
optind++;
}
optind++;