projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Updating server_st to keep client buffers per server.
[awesomized/libmemcached]
/
src
/
memflush.c
diff --git
a/src/memflush.c
b/src/memflush.c
index 84db8b425d36c616800b384f019c8aca5495574b..3c47fc3cd24e22c80479d7313167f2ce81881bd5 100644
(file)
--- a/
src/memflush.c
+++ b/
src/memflush.c
@@
-1,5
+1,6
@@
#include <stdio.h>
#include <unistd.h>
#include <stdio.h>
#include <unistd.h>
+#include <string.h>
#include <getopt.h>
#include <memcached.h>
#include "client_options.h"
#include <getopt.h>
#include <memcached.h>
#include "client_options.h"
@@
-42,8
+43,11
@@
int main(int argc, char *argv[])
rc = memcached_flush(memc, opt_expire);
if (rc != MEMCACHED_SUCCESS)
{
rc = memcached_flush(memc, opt_expire);
if (rc != MEMCACHED_SUCCESS)
{
- fprintf(stderr, "memflush: memcache error %s
\n
",
+ fprintf(stderr, "memflush: memcache error %s",
memcached_strerror(memc, rc));
memcached_strerror(memc, rc));
+ if (memc->cached_errno)
+ fprintf(stderr, " system error %s", strerror(memc->cached_errno));
+ fprintf(stderr, "\n");
}
memcached_free(memc);
}
memcached_free(memc);