summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVarsha Rao <varao@redhat.com>2018-01-07 12:33:21 +0530
committerVarsha Rao <varao@redhat.com>2018-01-10 17:51:12 +0530
commita601db69c771ab0d541815d2dd46183892e554c9 (patch)
tree1e7e7884ffb61a7cef80aa19c0c16a172121c6c4
parent6ad4c7ff050de6faa267e42a09ba35b8641f15db (diff)
cluster/dht: Change datatype of search_unhashed variable
Variable search_unhashed is of type boolean, change it to integer type. This fixes the warning increment of a boolean expression. BUG: 1531987 Change-Id: Ibf153f6a9ad704da38bff346b6a21a71323ed9bb Signed-off-by: Varsha Rao <varao@redhat.com>
-rw-r--r--xlators/cluster/dht/src/dht-common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/dht/src/dht-common.h b/xlators/cluster/dht/src/dht-common.h
index 577970835ae..a4114adc1de 100644
--- a/xlators/cluster/dht/src/dht-common.h
+++ b/xlators/cluster/dht/src/dht-common.h
@@ -88,7 +88,7 @@ struct dht_layout {
int gen;
int type;
gf_atomic_t ref; /* use with dht_conf_t->layout_lock */
- gf_boolean_t search_unhashed;
+ uint32_t search_unhashed;
struct {
int err; /* 0 = normal
-1 = dir exists and no xattr