From af218797fa98f2f75594fc9ae595f184682f1a0d 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 --- xlators/cluster/dht/src/dht-common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xlators/cluster/dht/src/dht-common.c') diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c index a0302b67dfe..ba082e28956 100644 --- a/xlators/cluster/dht/src/dht-common.c +++ b/xlators/cluster/dht/src/dht-common.c @@ -4916,7 +4916,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) @@ -4925,6 +4925,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