diff options
author | Basavanagowda Kanur <gowda@gluster.com> | 2009-04-02 06:07:04 +0530 |
---|---|---|
committer | Anand V. Avati <avati@amp.gluster.com> | 2009-04-02 18:09:23 +0530 |
commit | e8cce0bed6e5e6bd926ee465c5ec7a00b0b37793 (patch) | |
tree | 80bd136eb643c2b4ebec4b2b70c2e14850494b07 | |
parent | 905b9fd38a3da787de3f30d1cbdd5e85d56e2f81 (diff) |
cluster/{nufa,dht} fail revalidates with ESTALE, in case a stale layout is found in inode->ctx.
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
-rw-r--r-- | xlators/cluster/dht/src/dht-common.c | 4 | ||||
-rw-r--r-- | xlators/cluster/dht/src/nufa.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c index 86ec00a6f..b96db22cb 100644 --- a/xlators/cluster/dht/src/dht-common.c +++ b/xlators/cluster/dht/src/dht-common.c @@ -726,10 +726,10 @@ dht_lookup (call_frame_t *frame, xlator_t *this, } if (layout->gen && (layout->gen < conf->gen)) { - gf_log (this->name, GF_LOG_WARNING, + gf_log (this->name, GF_LOG_DEBUG, "incomplete layout failure for path=%s", loc->path); - op_errno = EAGAIN; + op_errno = ESTALE; goto err; } diff --git a/xlators/cluster/dht/src/nufa.c b/xlators/cluster/dht/src/nufa.c index 544913411..659a4acd5 100644 --- a/xlators/cluster/dht/src/nufa.c +++ b/xlators/cluster/dht/src/nufa.c @@ -214,10 +214,10 @@ nufa_lookup (call_frame_t *frame, xlator_t *this, } if (layout->gen && (layout->gen < conf->gen)) { - gf_log (this->name, GF_LOG_WARNING, + gf_log (this->name, GF_LOG_DEBUG, "incomplete layout failure for path=%s", loc->path); - op_errno = EAGAIN; + op_errno = ESTALE; goto err; } |