summaryrefslogtreecommitdiffstats
path: root/xlators/cluster
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/cluster')
-rw-r--r--xlators/cluster/dht/src/dht-common.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c
index ed4babd328c..4c85cd3a807 100644
--- a/xlators/cluster/dht/src/dht-common.c
+++ b/xlators/cluster/dht/src/dht-common.c
@@ -1451,6 +1451,14 @@ dht_lookup (call_frame_t *frame, xlator_t *this,
local->xattr_req = dict_new ();
}
+ /* Older (glusterfs 3.4) clients don't set this. If set, the server
+ * sends ESTALE when ENOENT occurs. */
+ ret = dict_set_int32 (local->xattr_req, "missing-gfid-ESTALE", 1);
+ if (ret < 0) {
+ gf_log (this->name, GF_LOG_DEBUG,
+ "%s: Unable to set dict value for missing-gfid-ESTALE",
+ loc->path);
+ }
if (uuid_is_null (loc->pargfid) && !uuid_is_null (loc->gfid) &&
!__is_root_gfid (loc->inode->gfid)) {
local->cached_subvol = NULL;