From aae7b5490feea555f785fa3f734e2251ea8fdbf5 Mon Sep 17 00:00:00 2001 From: Poornima G Date: Thu, 13 Apr 2017 16:44:44 +0530 Subject: dht: Add missing braces in dht_opendir >Change-Id: I6adce98f52e17953f501bc590ff7189cceac3c31 >BUG: 1431908 >Signed-off-by: Poornima G >Reviewed-on: https://review.gluster.org/17057 >Smoke: Gluster Build System >NetBSD-regression: NetBSD Build System >CentOS-regression: Gluster Build System >Reviewed-by: Vijay Bellur (cherry picked from commit af218797fa98f2f75594fc9ae595f184682f1a0d) Change-Id: I6adce98f52e17953f501bc590ff7189cceac3c31 BUG: 1435942 Reviewed-on: https://review.gluster.org/17285 Tested-by: Raghavendra Talur Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Raghavendra Talur --- xlators/cluster/dht/src/dht-common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c index 03274f221bc..c9be87c5aab 100644 --- a/xlators/cluster/dht/src/dht-common.c +++ b/xlators/cluster/dht/src/dht-common.c @@ -4904,7 +4904,7 @@ dht_opendir (call_frame_t *frame, xlator_t *this, loc_t *loc, fd_t *fd, for (i = 0; i < call_count; i++) { if (conf->readdir_optimize == _gf_true) { - if (subvolumes[i] != local->first_up_subvol) + if (subvolumes[i] != local->first_up_subvol) { ret = dict_set_int32 (xdata, GF_READDIR_SKIP_DIRS, 1); if (ret) @@ -4913,6 +4913,7 @@ dht_opendir (call_frame_t *frame, xlator_t *this, loc_t *loc, fd_t *fd, "Failed to set dictionary" " value :key = %s, ret:%d", GF_READDIR_SKIP_DIRS, ret); + } } STACK_WIND_COOKIE (frame, dht_fd_cbk, -- cgit