-static memcached_return_t set_hash(memcached_hash_t *store, memcached_hash_t type)
-{
-#ifndef HAVE_HSIEH_HASH
- if (type == MEMCACHED_HASH_HSIEH)
- return MEMCACHED_FAILURE;
-#endif
- if (type < MEMCACHED_HASH_MAX)
- {
- *store= type;
- }
- else
- {
- return MEMCACHED_FAILURE;
- }
-
- return MEMCACHED_SUCCESS;
-}