Hide Forgot
CALLOC does zero the memory, and the enum value DHT_HASH_TYPE_DM does end up being zero as well, but relying on this correspondence is fragile at best. Fixing this will probably involve hoisting the definition of dht_hashfn_type_t into hashfn.h so that dht-layout.c can see it.
PATCH: http://patches.gluster.com/patch/2683 in master (dht: initialize layout type)