summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrashanth Pai <ppai@redhat.com>2016-05-30 11:56:17 +0530
committerJeff Darcy <jdarcy@redhat.com>2016-07-27 04:12:06 -0700
commit98280290cd4a483f72c8c4d614eb826117383e1d (patch)
treee3da548e5d23b02528dbefa2ce29ecad4f601b6c
parentafd27ad5e957fcb88d8b84711c16e311888b9077 (diff)
tier: Suppress warning when tiering is disabled
Suppress -Wunused-function compile time warnings when tiering is disabled with --disable-tiering. BUG: 1193929 Change-Id: I396e03631606ce60a953ed5e124986ae2c803abd Signed-off-by: Prashanth Pai <ppai@redhat.com> Reviewed-on: http://review.gluster.org/14638 NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Smoke: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Jeff Darcy <jdarcy@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.org>
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-volume-set.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-set.c b/xlators/mgmt/glusterd/src/glusterd-volume-set.c
index 3e12c4f5fb0..ca646e4dcce 100644
--- a/xlators/mgmt/glusterd/src/glusterd-volume-set.c
+++ b/xlators/mgmt/glusterd/src/glusterd-volume-set.c
@@ -11,6 +11,8 @@
#include "glusterd-volgen.h"
#include "glusterd-utils.h"
+#if USE_GFDB /* no GFDB means tiering is disabled */
+
static int
get_tier_freq_threshold (glusterd_volinfo_t *volinfo, char *threshold_key) {
int threshold = 0;
@@ -474,6 +476,8 @@ out:
return ret;
}
+#endif /* End for USE_GFDB */
+
static int
validate_cache_max_min_size (glusterd_volinfo_t *volinfo, dict_t *dict,
char *key, char *value, char **op_errstr)