From: Brian Aker Date: Sat, 9 Feb 2008 16:05:06 +0000 (-0800) Subject: Updated Version status. Updated all command line tools to return error X-Git-Tag: _20~17^2~3 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=9e3bf9c2657ea5f32009636394c22530b789ffb2;p=m6w6%2Flibmemcached Updated Version status. Updated all command line tools to return error message upong not finding servers. --- diff --git a/ChangeLog b/ChangeLog index e2ef7733..234175fc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +0.17 + * More error messages on command line tools. + 0.16 * Work on the UDP protocol * Added get_by_key, set_by_key tests for C++ API diff --git a/configure.ac b/configure.ac index d1a1da75..b70514ad 100644 --- a/configure.ac +++ b/configure.ac @@ -7,7 +7,7 @@ MEMCACHED_LIBRARY_NAME=libmemcached #release versioning MEMCACHED_MAJOR_VERSION=0 -MEMCACHED_MINOR_VERSION=16 +MEMCACHED_MINOR_VERSION=17 MEMCACHED_MICRO_VERSION=0 #API version diff --git a/include/memcached.h b/include/memcached.h index 095ac435..bdeb5398 100644 --- a/include/memcached.h +++ b/include/memcached.h @@ -32,7 +32,7 @@ extern "C" { #define MEMCACHED_DEFAULT_TIMEOUT INT32_MAX /* string value */ -#define LIBMEMCACHED_VERSION_STRING "0.16" +#define LIBMEMCACHED_VERSION_STRING "0.17" typedef enum { MEMCACHED_SUCCESS, diff --git a/src/memcat.c b/src/memcat.c index 2db0c8ee..7d2c14db 100644 --- a/src/memcat.c +++ b/src/memcat.c @@ -37,7 +37,10 @@ int main(int argc, char *argv[]) if ((temp= getenv("MEMCACHED_SERVERS"))) opt_servers= strdup(temp); else + { + fprintf(stderr, "No Servers provided\n"); exit(1); + } } memc= memcached_create(NULL); diff --git a/src/memcp.c b/src/memcp.c index 57d0a70d..cbdbf449 100644 --- a/src/memcp.c +++ b/src/memcp.c @@ -47,7 +47,10 @@ int main(int argc, char *argv[]) if ((temp= getenv("MEMCACHED_SERVERS"))) opt_servers= strdup(temp); else + { + fprintf(stderr, "No Servers provided\n"); exit(1); + } } if (opt_servers) diff --git a/src/memflush.c b/src/memflush.c index 3c47fc3c..ed3a5f81 100644 --- a/src/memflush.c +++ b/src/memflush.c @@ -31,7 +31,10 @@ int main(int argc, char *argv[]) if ((temp= getenv("MEMCACHED_SERVERS"))) opt_servers= strdup(temp); else + { + fprintf(stderr, "No Servers provided\n"); exit(1); + } } memc= memcached_create(NULL); diff --git a/src/memrm.c b/src/memrm.c index 2a79933a..7b774d72 100644 --- a/src/memrm.c +++ b/src/memrm.c @@ -32,7 +32,10 @@ int main(int argc, char *argv[]) if ((temp= getenv("MEMCACHED_SERVERS"))) opt_servers= strdup(temp); else + { + fprintf(stderr, "No Servers provided\n"); exit(1); + } } memc= memcached_create(NULL); diff --git a/src/memstat.c b/src/memstat.c index 6f3c55d8..540d3f4f 100644 --- a/src/memstat.c +++ b/src/memstat.c @@ -41,7 +41,10 @@ int main(int argc, char *argv[]) if ((temp= getenv("MEMCACHED_SERVERS"))) opt_servers= strdup(temp); else + { + fprintf(stderr, "No Servers provided\n"); exit(1); + } } memc= memcached_create(NULL);