From da9664587d414ba703c46839e3a4831ad3784a19 Mon Sep 17 00:00:00 2001 From: "Anand V. Avati" Date: Fri, 27 Feb 2009 10:34:03 +0530 Subject: Skip self-heal when subvolumes are down Signed-off-by: Anand V. Avati --- xlators/cluster/dht/src/dht-selfheal.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'xlators/cluster/dht/src/dht-selfheal.c') diff --git a/xlators/cluster/dht/src/dht-selfheal.c b/xlators/cluster/dht/src/dht-selfheal.c index f4c3cf56b23..8b6bdabd681 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); -- cgit