summaryrefslogtreecommitdiffstats
path: root/xlators/features/upcall/src/upcall.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features/upcall/src/upcall.c')
-rw-r--r--xlators/features/upcall/src/upcall.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/xlators/features/upcall/src/upcall.c b/xlators/features/upcall/src/upcall.c
index bc098873f5d..4e9650066d4 100644
--- a/xlators/features/upcall/src/upcall.c
+++ b/xlators/features/upcall/src/upcall.c
@@ -1634,7 +1634,7 @@ reconfigure (xlator_t *this, dict_t *options)
" Disabling cache_invalidation",
strerror(errno));
}
- priv->reaper_init_done = 1;
+ priv->reaper_init_done = _gf_true;
}
out:
@@ -1666,7 +1666,7 @@ init (xlator_t *this)
this->private = priv;
priv->fini = 0;
- priv->reaper_init_done = 0;
+ priv->reaper_init_done = _gf_false;
this->local_pool = mem_pool_new (upcall_local_t, 512);
ret = 0;
@@ -1681,7 +1681,7 @@ init (xlator_t *this)
" Disabling cache_invalidation",
strerror(errno));
}
- priv->reaper_init_done = 1;
+ priv->reaper_init_done = _gf_true;
}
out:
if (ret) {
@@ -1704,7 +1704,8 @@ fini (xlator_t *this)
priv->fini = 1;
- pthread_join (priv->reaper_thr, NULL);
+ if (priv->reaper_init_done)
+ pthread_join (priv->reaper_thr, NULL);
LOCK_DESTROY (&priv->inode_ctx_lk);