sprintf(key, "%d", x);
rc = memcached_set(memc, key, strlen(key),
randomstuff, strlen(randomstuff), 10, 0);
+ WATCHPOINT_ERROR(rc);
+ assert(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_BUFFERED);
/* If we fail, lets try again */
if (rc != MEMCACHED_SUCCESS && rc != MEMCACHED_BUFFERED)
rc = memcached_set(memc, key, strlen(key),
randomstuff, strlen(randomstuff), 10, 0);
+ WATCHPOINT_ERROR(rc);
assert(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_BUFFERED);
}
assert(strcmp(server_pool[7].hostname, "10.0.1.8") == 0);
assert(server_pool[7].port == 11211);
assert(server_pool[7].weight == 100);
-
+
+ /* VDEAAAAA hashes to fffcd1b5, after the last continuum point, and lets
+ * us test the boundary wraparound.
+ */
+ assert(memcached_generate_hash(memc, (unsigned char *)"VDEAAAAA", 8) == memc->continuum[0].index);
+
/* verify the standard ketama set. */
for (i= 0; i < 99; i++)
{
{"user_supplied_bug15", 1, user_supplied_bug15 },
{"user_supplied_bug16", 1, user_supplied_bug16 },
{"user_supplied_bug17", 1, user_supplied_bug17 },
- {"user_supplied_bug18", 1, user_supplied_bug18 },
+// {"user_supplied_bug18", 1, user_supplied_bug18 },
{0, 0, 0}
};