summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnand V. Avati <avati@amp.gluster.com>2009-02-27 10:34:03 +0530
committerAnand V. Avati <avati@amp.gluster.com>2009-02-27 16:12:07 +0530
commitda9664587d414ba703c46839e3a4831ad3784a19 (patch)
tree30cfa25d1d9ceab0d5e6d21d896a165f4aea39f2
parent596b48e14e5797deca35915edb047471d7c15a00 (diff)
Skip self-heal when subvolumes are down
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
-rw-r--r--xlators/cluster/dht/src/dht-selfheal.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/xlators/cluster/dht/src/dht-selfheal.c b/xlators/cluster/dht/src/dht-selfheal.c
index f4c3cf56..8b6bdabd 100644
--- a/xlators/cluster/dht/src/dht-selfheal.c
+++ b/xlators/cluster/dht/src/dht-selfheal.c
@@ -419,7 +419,6 @@ dht_selfheal_directory (call_frame_t *frame, dht_selfheal_dir_cbk_t dir_cbk,
local->selfheal.dir_cbk = dir_cbk;
local->selfheal.layout = layout;
-/*
if (down) {
gf_log (this->name, GF_LOG_ERROR,
"%d subvolumes down -- not fixing", down);
@@ -427,14 +426,6 @@ dht_selfheal_directory (call_frame_t *frame, dht_selfheal_dir_cbk_t dir_cbk,
goto sorry_no_fix;
}
- if (overlaps) {
- gf_log (this->name, GF_LOG_ERROR,
- "not fixing overlaps in %s", loc->path);
- local->op_errno = EINVAL;
- ret = -1;
- goto sorry_no_fix;
- }
-
if (misc) {
gf_log (this->name, GF_LOG_ERROR,
"%d subvolumes have unrecoverable errors", misc);
@@ -442,14 +433,6 @@ dht_selfheal_directory (call_frame_t *frame, dht_selfheal_dir_cbk_t dir_cbk,
goto sorry_no_fix;
}
- if (holes > missing) {
- gf_log (this->name, GF_LOG_ERROR,
- "%d holes and %d pigeons -- not fixing",
- holes, missing);
- ret = 0;
- goto sorry_no_fix;
- }
-*/
dht_layout_sort_volname (layout);
ret = dht_selfheal_dir_getafix (frame, loc, layout);