path: root/tools/
diff options
authorNiels de Vos <>2017-07-26 16:16:11 +0200
committerJeff Darcy <>2017-07-28 11:27:10 +0000
commitb5fa5ae05f73e03023db37e43fb203267b719160 (patch)
tree56875f954b6c8fa51a33d2e0e5793ff212fc554b /tools/
parentd685e4238fafba8f58bf01174c79cb5ca35203e5 (diff)
mem-pool: track and verify initialization state
It is possible that pthread_getspecific() returns a non-NULL value in case the pthread_key_t is not initialized. The behaviour for pthread_getspecific() is not defined in this case. This can happen when applications use mem-pools from, but did not call mem_pools_init_early(). By tracking the status of the mem-pools initialization, it is now possible to prevent calling pthread_getspecific() in case the pthread_key_t is not initialized. In future, we might want to exend this more to faciliate debugging. Reported-by: Kotresh HR <> Tested-by: Jiffin Tony Thottan <> Change-Id: I6255419fe05792dc78b1eaff55bc008fc5ff3933 Fixes: 1e8e62640 ("mem-pool: initialize pthread_key_t pool_key in mem_pool_init_early()") BUG: 1475255 Signed-off-by: Niels de Vos <> Reviewed-on: Smoke: Gluster Build System <> CentOS-regression: Gluster Build System <> Reviewed-by: jiffin tony Thottan <> Reviewed-by: Jeff Darcy <>
Diffstat (limited to 'tools/')
0 files changed, 0 insertions, 0 deletions