From 092dc2676b48659faa09c6606ce0280e14bbcf63 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Sun, 10 Jun 2012 21:20:41 +0530 Subject: cluster/afr: Avoid return value truncation Change-Id: I947316a0e1112bf3c7b7e21aefce96685a9d06db BUG: 804606 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.com/3543 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/cluster/afr/src/afr-self-heal-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xlators/cluster/afr/src/afr-self-heal-common.c b/xlators/cluster/afr/src/afr-self-heal-common.c index 3987325b8..e16096849 100644 --- a/xlators/cluster/afr/src/afr-self-heal-common.c +++ b/xlators/cluster/afr/src/afr-self-heal-common.c @@ -2254,7 +2254,7 @@ afr_self_heal (call_frame_t *frame, xlator_t *this, inode_t *inode) sh->orig_frame = frame; sh->inode = inode_ref (inode); - sh_local->govinda_gOvinda = afr_is_split_brain (this, sh->inode); + sh_local->govinda_gOvinda = (afr_is_split_brain (this, sh->inode) != 0); sh->completion_cbk = afr_self_heal_completion_cbk; -- cgit