diff options
author | Raghavendra G <raghavendra@gluster.com> | 2012-04-02 16:32:18 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2012-04-23 10:41:03 -0700 |
commit | fc024df2b6f9307f23a4a0800103555708036b17 (patch) | |
tree | b2582b6623e2791167ce23586ff00823991ddee5 /xlators/mgmt | |
parent | fdcbf065a9a4c39f08dfbe9e40695de250829bd8 (diff) |
cluster/distribute: handle dht_layout_normalize errors differently in
dht_lookup_dir_cbk and dht_discover_complete.
return value from dht_layout_normalize is interpreted as follows:
ret > 0 - number of subvolumes returned ENOENT errors.
ret = 0 - no anomalies found.
ret < 0 - there are holes/overlaps.
We need to handle errors differently in dht_discover_cbk because,
if a subvolume is newly added, the directory will not be present on it
and we cannot create a directory there since a nameless lookup has
resulted execution in this code-path. Hence if directory is guaranteed
to be present in atleast one subvolume and there are no holes/overlaps
in the layout, lookup can be treated as successful.
there is no change in behaviour dht_lookup_dir_cbk caused by this
patch.
Change-Id: I9b0b510f1c7de187be95a47da6c9ec57b5e38d1d
BUG: 802233
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Reviewed-on: http://review.gluster.com/3069
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/mgmt')
0 files changed, 0 insertions, 0 deletions