* New consistent distribution tests.
* Found a memory leak when a server constantly fails.
+ * Fix in watchpoint macro
* Changed default timeout to 1 second for poll timeouts
* Wheel uses less memory/dynamic allocation for size (no longer limited to
512 hosts by default.
Hi!
-So what is this? Its a library in C for connectinng to memcached servers
+So what is this? It is a library in C for connectinng to memcached servers
(http://danga.com/memcached/). It is also a collection of utilities designed
to work with memcached.
memcat - Copy the value of a key to standard output
memflush - Flush the contents of your servers.
-memrm - Remove a key(s) from the serrver.
+memrm - Remove a key(s) from the server.
memstat - Dump the stats of your servers to standard output
memslap - Load generation utility (benchmark!)
./config/bootstrap
It will set up all of the files you need to build libmemcached. At that
-point it is just the typical "./configure; make; make test; make instal"
+point it is just the typical "./configure; make; make test; make install"
For a tarball release do a "make dist" and for an RPM type "make rpm".
time_t expiration);
memcached_return memcached_fetch_execute(memcached_st *ptr,
- unsigned int (*callback[])(memcached_st *ptr, memcached_result_st *result, void *context),
+ memcached_execute_function *callback,
void *context,
- unsigned int number_of_callbacks
- );
+ unsigned int number_of_callbacks);
memcached_return memcached_callback_set(memcached_st *ptr,
memcached_callback flag,
memcached_return memcached_fetch_execute(memcached_st *ptr,
memcached_execute_function *callback,
void *context,
- unsigned int number_of_callbacks
- )
+ unsigned int number_of_callbacks)
{
memcached_result_st *result= &ptr->result;
#endif
/* Some personal debugging functions */
-#ifdef MEMCACHED_INTERNAL
-#ifdef HAVE_DEBUG
+#if defined(MEMCACHED_INTERNAL) && defined(HAVE_DEBUG)
#include <assert.h>
#define WATCHPOINT fprintf(stderr, "\nWATCHPOINT %s:%d (%s)\n", __FILE__, __LINE__,__func__);fflush(stdout);
#define WATCHPOINT_ERRNO(A)
#define WATCHPOINT_ASSERT_PRINT(A,B,C)
#define WATCHPOINT_ASSERT(A)
-#endif
-#endif /* MEMCACHED_INTERNAL */
+
+#endif /* MEMCACHED_INTERNAL && HAVE_DEBUG */
#ifdef __cplusplus
}