projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Modifying behavior to bounce connection in the case of a bad value from
[m6w6/libmemcached]
/
src
/
memflush.c
diff --git
a/src/memflush.c
b/src/memflush.c
index 657a782d8fa1f343975fb7af85e92ffd57a4b29c..3c47fc3cd24e22c80479d7313167f2ce81881bd5 100644
(file)
--- a/
src/memflush.c
+++ b/
src/memflush.c
@@
-43,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);