diff options
| -rw-r--r-- | xlators/cluster/dht/src/dht-common.c | 7 | 
1 files changed, 7 insertions, 0 deletions
diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c index 6e3320f9931..d478b058b91 100644 --- a/xlators/cluster/dht/src/dht-common.c +++ b/xlators/cluster/dht/src/dht-common.c @@ -2994,6 +2994,13 @@ unlock:          this_call_cnt = dht_frame_return (frame);  out:          if (is_last_call (this_call_cnt)) { + +                /* If we have a valid xattr received from any one of the +                 * subvolume, let's return it */ +                if (local->xattr) { +                        local->op_ret = 0; +                } +                  DHT_STACK_UNWIND (getxattr, frame, local->op_ret, op_errno,                                    local->xattr, NULL);          }  | 
