diff options
-rw-r--r-- | xlators/cluster/dht/src/nufa.c | 5 | ||||
-rw-r--r-- | xlators/cluster/dht/src/switch.c | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/xlators/cluster/dht/src/nufa.c b/xlators/cluster/dht/src/nufa.c index eb12be60d..a4a4a2568 100644 --- a/xlators/cluster/dht/src/nufa.c +++ b/xlators/cluster/dht/src/nufa.c @@ -134,8 +134,9 @@ out: gf_log (this->name, GF_LOG_DEBUG, "no subvolume in layout for path=%s", local->loc.path); - op_errno = EINVAL; - goto err; + local->op_errno = ENOENT; + dht_lookup_everywhere (frame, this, loc); + return 0; } STACK_WIND (frame, dht_lookup_cbk, diff --git a/xlators/cluster/dht/src/switch.c b/xlators/cluster/dht/src/switch.c index 5a36f8dab..766bd31ff 100644 --- a/xlators/cluster/dht/src/switch.c +++ b/xlators/cluster/dht/src/switch.c @@ -207,8 +207,9 @@ out: gf_log (this->name, GF_LOG_DEBUG, "no subvolume in layout for path=%s", local->loc.path); - op_errno = EINVAL; - goto err; + local->op_errno = ENOENT; + dht_lookup_everywhere (frame, this, loc); + return 0; } STACK_WIND (frame, dht_lookup_cbk, |