diff options
author | Anand V. Avati <avati@dev.gluster.com> | 2011-02-04 11:22:55 -0800 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2011-02-04 11:22:55 -0800 |
commit | e266833e72749368019b7dcae32dc206d180acdd (patch) | |
tree | 6037d5a9adb6e2e6e3cb1e7159ea0c46dfe45ef3 /xlators/cluster/dht/src/dht-selfheal.c | |
parent | ed743d89affe8be2d9d7da87479a498af40e12b0 (diff) |
Revert "distribute: Return ESTALE when dir selfheal finds no fix"
This reverts commit a4c948aca6058049523e31acf33ce5770f8693ad.
Diffstat (limited to 'xlators/cluster/dht/src/dht-selfheal.c')
-rw-r--r-- | xlators/cluster/dht/src/dht-selfheal.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/xlators/cluster/dht/src/dht-selfheal.c b/xlators/cluster/dht/src/dht-selfheal.c index 74c89a4fd..3d2470174 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; } |