diff options
Diffstat (limited to 'xlators/cluster/dht/src')
-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 eb12be60d9f..a4a4a2568ac 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 5a36f8dab04..766bd31ff48 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, |