From 0ab4cb8174f478e8f725f13e96f608a6186e8384 Mon Sep 17 00:00:00 2001 From: Humble Devassy Chirammal Date: Wed, 11 Mar 2015 17:19:42 +0530 Subject: libgfapi: initialize child_down_count cond. variable. currently glfs_new_from_ctx() does not initialize child_down_count conditional variable, but, glfs_free_from_ctx() destroy this variable. mnt3udp_get_export_subdir_inode() from mount3 calls glfs_free_from_ctx(), so bound to invite problems. This patch avoids the issue. Change-Id: I8c1ed83f0b39248edbb78db25c9434274b538e80 BUG: 1200879 Signed-off-by: Humble Devassy Chirammal Reviewed-on: http://review.gluster.org/9857 Tested-by: Gluster Build System Reviewed-by: Niels de Vos --- api/src/glfs.c | 1 + 1 file changed, 1 insertion(+) (limited to 'api') diff --git a/api/src/glfs.c b/api/src/glfs.c index df8adb6faf5..2b98a2843e0 100644 --- a/api/src/glfs.c +++ b/api/src/glfs.c @@ -614,6 +614,7 @@ priv_glfs_new_from_ctx (glusterfs_ctx_t *ctx) fs->ctx = ctx; (void) pthread_cond_init (&fs->cond, NULL); + (void) pthread_cond_init (&fs->child_down_cond, NULL); (void) pthread_mutex_init (&fs->mutex, NULL); -- cgit