summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/performance/read-ahead/src/read-ahead.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/xlators/performance/read-ahead/src/read-ahead.c b/xlators/performance/read-ahead/src/read-ahead.c
index 224edf0864a..e6bfd25641e 100644
--- a/xlators/performance/read-ahead/src/read-ahead.c
+++ b/xlators/performance/read-ahead/src/read-ahead.c
@@ -1021,7 +1021,6 @@ ra_priv_dump(xlator_t *this)
char key_prefix[GF_DUMP_MAX_BUF_LEN] = {
0,
};
- gf_boolean_t add_section = _gf_false;
if (!this) {
goto out;
@@ -1037,7 +1036,6 @@ ra_priv_dump(xlator_t *this)
gf_proc_dump_build_key(key_prefix, "xlator.performance.read-ahead", "priv");
gf_proc_dump_add_section("%s", key_prefix);
- add_section = _gf_true;
ret = pthread_mutex_trylock(&conf->conf_lock);
if (ret)
@@ -1053,9 +1051,6 @@ ra_priv_dump(xlator_t *this)
ret = 0;
out:
if (ret && conf) {
- if (add_section == _gf_false)
- gf_proc_dump_add_section("%s", key_prefix);
-
gf_proc_dump_write("Unable to dump priv",
"(Lock acquisition failed) %s", this->name);
}