From e266833e72749368019b7dcae32dc206d180acdd Mon Sep 17 00:00:00 2001 From: "Anand V. Avati" Date: Fri, 4 Feb 2011 11:22:55 -0800 Subject: Revert "distribute: Return ESTALE when dir selfheal finds no fix" This reverts commit a4c948aca6058049523e31acf33ce5770f8693ad. --- xlators/cluster/dht/src/dht-selfheal.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'xlators') diff --git a/xlators/cluster/dht/src/dht-selfheal.c b/xlators/cluster/dht/src/dht-selfheal.c index 74c89a4fdde..3d247017410 100644 --- a/xlators/cluster/dht/src/dht-selfheal.c +++ b/xlators/cluster/dht/src/dht-selfheal.c @@ -503,16 +503,14 @@ dht_selfheal_directory (call_frame_t *frame, dht_selfheal_dir_cbk_t dir_cbk, if (down) { gf_log (this->name, GF_LOG_DEBUG, "%d subvolumes down -- not fixing", down); - ret = -1; - local->op_errno = ESTALE; + ret = 0; goto sorry_no_fix; } if (misc) { gf_log (this->name, GF_LOG_DEBUG, "%d subvolumes have unrecoverable errors", misc); - ret = -1; - local->op_errno = ESTALE; + ret = 0; goto sorry_no_fix; } @@ -522,8 +520,6 @@ dht_selfheal_directory (call_frame_t *frame, dht_selfheal_dir_cbk_t dir_cbk, if (ret == -1) { gf_log (this->name, GF_LOG_DEBUG, "not able to form layout for the directory"); - ret = -1; - local->op_errno = ESTALE; goto sorry_no_fix; } -- cgit