+0.24 Tue Sep 16 02:59:03 PDT 2008
* Cleanup compile warnings.
* Fix issues in partitioning by keys.
* Fixed "fail case" to make sure when calling memcached_clone() no
#release versioning
MEMCACHED_MAJOR_VERSION=0
-MEMCACHED_MINOR_VERSION=23
+MEMCACHED_MINOR_VERSION=24
MEMCACHED_MICRO_VERSION=0
#API version
CFLAGS="-DMEMCACHED_INTERNAL $CFLAGS"
if test "$GCC" = "yes"
then
- CFLAGS="-W -std=iso9899:1999 -Wall -Wextra -Wstrict-aliasing -pedantic -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -O3 $CFLAGS"
+ #CFLAGS="-W -std=iso9899:1999 -Wall -Wextra -Wstrict-aliasing -pedantic -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -O3 $CFLAGS"
+ CFLAGS="-Wall -O3 $CFLAGS"
if test "$ENABLE_DEBUG" = "yes"
then
uint32_t value;
};
-#define LIBMEMCACHED_VERSION_STRING "0.23"
+#define LIBMEMCACHED_VERSION_STRING "0.24"
struct memcached_stat_st {
uint32_t pid;
#include "common.h"
+#include <netdb.h>
#include <poll.h>
#include <sys/time.h>
ptr->address_info= NULL;
}
- if (ptr->root->retry_timeout)
- {
- struct timeval next_time;
+ if (ptr->root->retry_timeout)
+ {
+ struct timeval next_time;
- gettimeofday(&next_time, NULL);
- ptr->next_retry= next_time.tv_sec + ptr->root->retry_timeout;
- }
+ gettimeofday(&next_time, NULL);
+ ptr->next_retry= next_time.tv_sec + ptr->root->retry_timeout;
+ }
ptr->server_failure_counter+= 1;
return MEMCACHED_ERRNO;
}
float pct = (float)list[host_index].limit_maxbytes/ (float)total_mem_bytes;
pointer_per_server= floorf( pct * MEMCACHED_POINTS_PER_SERVER * (float)(ptr->number_of_hosts));
#ifdef HAVE_DEBUG
- printf("ketama_weighted:%s|%d|%llu|%u\n", list[host_index].hostname, list[host_index].port, list[host_index].limit_maxbytes, pointer_per_server);
+ printf("ketama_weighted:%s|%d|%llu|%u\n",
+ list[host_index].hostname,
+ list[host_index].port,
+ (unsigned long long)list[host_index].limit_maxbytes,
+ pointer_per_server);
#endif
}
for(index= 1; index <= pointer_per_server; ++index)