summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr.c
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2011-03-29 07:07:05 +0000
committerVijay Bellur <vijay@dev.gluster.com>2011-04-01 06:08:30 -0700
commit5c709704ab5767b55f4eef7cddea52e18e2a6d42 (patch)
tree33d69ea9ffe725170cf3d10fb6c555cb03ec6be0 /xlators/cluster/afr/src/afr.c
parentd983f04c961304dc57d14c305751b0d1113c3a5d (diff)
cluster/afr: log enhancement - part 3
Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 2346 (Log message enhancements in GlusterFS - phase 1) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2346
Diffstat (limited to 'xlators/cluster/afr/src/afr.c')
-rw-r--r--xlators/cluster/afr/src/afr.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/xlators/cluster/afr/src/afr.c b/xlators/cluster/afr/src/afr.c
index 98d857d6bc0..79753c91b09 100644
--- a/xlators/cluster/afr/src/afr.c
+++ b/xlators/cluster/afr/src/afr.c
@@ -152,8 +152,7 @@ reconfigure (xlator_t *this, dict_t *options)
self_heal);
}
- dict_ret = dict_get_str (options, "data-self-heal",
- &self_heal);
+ dict_ret = dict_get_str (options, "data-self-heal", &self_heal);
if (dict_ret == 0) {
temp_ret = gf_string2boolean (self_heal, &data_self_heal);
if (temp_ret < 0) {
@@ -224,8 +223,7 @@ reconfigure (xlator_t *this, dict_t *options)
}
- dict_ret = dict_get_str (options, "data-change-log",
- &change_log);
+ dict_ret = dict_get_str (options, "data-change-log", &change_log);
if (dict_ret == 0) {
temp_ret = gf_string2boolean (change_log, &data_change_log);
if (temp_ret < 0) {
@@ -328,12 +326,10 @@ reconfigure (xlator_t *this, dict_t *options)
break;
}
-
trav = trav->next;
}
if (flag == 0 ) {
-
gf_log (this->name, GF_LOG_ERROR,
"Invalid 'option read-subvolume %s', no such subvolume"
, read_subvol);
@@ -341,7 +337,6 @@ reconfigure (xlator_t *this, dict_t *options)
goto out;
}
-
next:
out:
return ret;
@@ -374,7 +369,6 @@ init (xlator_t *this)
int i = 0;
int ret = -1;
int op_errno = 0;
-
char * read_subvol = NULL;
char * fav_child = NULL;
char * self_heal = NULL;
@@ -383,11 +377,9 @@ init (xlator_t *this)
char * strict_readdir = NULL;
char * inodelk_trace = NULL;
char * entrylk_trace = NULL;
-
int32_t background_count = 0;
int32_t lock_server_count = 1;
int32_t window_size = 0;
-
int fav_ret = -1;
int read_ret = -1;
int dict_ret = -1;
@@ -405,7 +397,6 @@ init (xlator_t *this)
"Volume is dangling.");
}
-
ALLOC_OR_GOTO (this->private, afr_private_t, out);
priv = this->private;
@@ -670,8 +661,6 @@ init (xlator_t *this)
priv->child_up = GF_CALLOC (sizeof (unsigned char), child_count,
gf_afr_mt_char);
if (!priv->child_up) {
- gf_log (this->name, GF_LOG_ERROR,
- "Out of memory.");
ret = -ENOMEM;
goto out;
}
@@ -686,8 +675,6 @@ init (xlator_t *this)
priv->children = GF_CALLOC (sizeof (xlator_t *), child_count,
gf_afr_mt_xlator_t);
if (!priv->children) {
- gf_log (this->name, GF_LOG_ERROR,
- "Out of memory.");
ret = -ENOMEM;
goto out;
}
@@ -696,8 +683,6 @@ init (xlator_t *this)
child_count,
gf_afr_mt_char);
if (!priv->pending_key) {
- gf_log (this->name, GF_LOG_ERROR,
- "Out of memory.");
ret = -ENOMEM;
goto out;
}