summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHumble Devassy Chirammal <hchiramm@redhat.com>2015-03-11 17:19:42 +0530
committerNiels de Vos <ndevos@redhat.com>2015-03-16 02:47:05 -0700
commit0ab4cb8174f478e8f725f13e96f608a6186e8384 (patch)
tree3735e643edee068271a450a7ec8061bb4ac8d121
parentc7785f78420c94220954eef538ed4698713ebcdb (diff)
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 <hchiramm@redhat.com> Reviewed-on: http://review.gluster.org/9857 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Niels de Vos <ndevos@redhat.com>
-rw-r--r--api/src/glfs.c1
1 files changed, 1 insertions, 0 deletions
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);