* Fixed uint16_t issues around flags. Turns out the documentation on the
protocol was wrong.
* Lingering socket fixes for FreeBSD.
+ * Patches from Kevin Dalley for FreeBSD 4.0
0.12 Tue Dec 11 15:20:55 PST 2007
* Updates for consistent hashing
AC_C_CONST
AC_HEADER_TIME
AC_TYPE_SIZE_T
+AC_SEARCH_LIBS(getopt_long, gnugetopt)
AC_OUTPUT(Makefile src/Makefile tests/Makefile docs/Makefile lib/Makefile include/Makefile support/Makefile support/libmemcached.pc support/libmemcached.spec)
#include <unistd.h>
#include <limits.h>
#include <assert.h>
-#include <time.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/un.h>
#include <netinet/tcp.h>
+#include "libmemcached_config.h"
+
+#if TIME_WITH_SYS_TIME
+# include <sys/time.h>
+# include <time.h>
+#else
+# if HAVE_SYS_TIME_H
+# include <sys/time.h>
+# else
+# include <time.h>
+# endif
+#endif
{
if (ptr->hosts[server_key].fd == -1)
{
+ struct addrinfo *use;
+
/* Old connection junk still is in the structure */
WATCHPOINT_ASSERT(ptr->hosts[server_key].cursor_active == 0);
- struct addrinfo *use;
if (ptr->hosts[server_key].sockaddr_inited == MEMCACHED_NOT_ALLOCATED ||
(!(ptr->flags & MEM_USE_CACHE_LOOKUPS)))
#include <stdio.h>
-#include <stdint.h>
+#include <inttypes.h>
#include <string.h>
#include <unistd.h>
#include <getopt.h>
#include <stdio.h>
-#include <stdint.h>
+#include <inttypes.h>
#include <string.h>
#include <unistd.h>
#include <getopt.h>
#include <memcached.h>
#include <getopt.h>
#include "client_options.h"
+#include "libmemcached_config.h"
+
+#if TIME_WITH_SYS_TIME
+# include <sys/time.h>
+# include <time.h>
+#else
+# if HAVE_SYS_TIME_H
+# include <sys/time.h>
+# else
+# include <time.h>
+# endif
+#endif
typedef struct memcached_programs_help_st memcached_programs_help_st;
#include "../src/generator.h"
#include "../src/execute.h"
+#ifndef INT64_MAX
+#define INT64_MAX LONG_MAX
+#endif
+#ifndef INT32_MAX
+#define INT32_MAX INT_MAX
+#endif
+
+
#include "test.h"
#define GLOBAL_COUNT 100000
size_t key_length[]= {5, 3, 4};
unsigned int x;
uint32_t flags;
+ char return_key[MEMCACHED_MAX_KEY];
+ size_t return_key_length;
+ char *return_value;
+ size_t return_value_length;
/* Here we free everything before running a bunch of mget tests */
{
memc->number_of_hosts= 0;
}
- char return_key[MEMCACHED_MAX_KEY];
- size_t return_key_length;
- char *return_value;
- size_t return_value_length;
/* We need to empty the server before continueing test */
rc= memcached_flush(memc, 0);
char *wildcard= NULL;
memcached_server_st *servers;
collection_st *collection;
+ collection_st *next;
uint8_t failed;
collection= gets_collections();
printf("\n");
- collection_st *next;
for (next= collection; next->name; next++)
{
test_st *run;
memcached_st *memc;
memcached_return rc;
struct timeval start_time, end_time;
+ long int load_time;
if (wildcard && fnmatch(wildcard, run->name, 0))
continue;
gettimeofday(&start_time, NULL);
failed= run->function(memc);
gettimeofday(&end_time, NULL);
- long int load_time= timedif(end_time, start_time);
+ load_time= timedif(end_time, start_time);
if (failed)
fprintf(stderr, "\t\t\t\t\t %ld.%03ld [ failed ]\n", load_time / 1000,
load_time % 1000);