}
else
{
- world->servers().set_servers_to_run(8);
+ world->servers().set_servers_to_run(libtest::number_of_cpus() > 3 ?
+ libtest::number_of_cpus() : 3);
}
- world->collections= collection;
+ world->collections(collection);
- world->_create= (test_callback_create_fn*)world_create;
- world->_destroy= (test_callback_destroy_fn*)world_destroy;
+ world->create((test_callback_create_fn*)world_create);
+ world->destroy((test_callback_destroy_fn*)world_destroy);
world->set_runner(new LibmemcachedRunner);