- ((memcached_server_write_instance_st)instance)->port= 0;
- if (++hash == memc_clone->number_of_hosts)
- hash= 0;
+ // Confirm keys with replication read
+ test_compare(TEST_SUCCESS, confirm_keys_exist(memc_replicated, keys, test_array_length(keys), true));
+ test_compare(TEST_SUCCESS, confirm_keys_exist(memc_not_replicate, keys, test_array_length(keys), true));
+
+ /* Delete the items from all of the servers except 1, we use the non replicated memc so that we know we deleted the keys */
+ for (size_t x= 0; x < test_array_length(keys); ++x)
+ {
+ test_compare(MEMCACHED_SUCCESS,
+ memcached_delete(memc_replicated,
+ test_string_make_from_cstr(keys[x]), // Keys
+ 0));