Bug 762255 (GLUSTER-523)

Summary: Hash type is not initialized in dht_layout_new
Product: [Community] GlusterFS Reporter: Jeff Darcy <jdarcy>
Component: distributeAssignee: Anand Avati <aavati>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: mainlineCC: avati, chrisw, gluster-bugs, lakshmipathi
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: RTNR Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jeff Darcy 2010-01-07 13:39:21 UTC
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.

Comment 1 Anand Avati 2010-01-23 16:07:08 UTC
PATCH: http://patches.gluster.com/patch/2683 in master (dht: initialize layout type)