diff options
author | Anand Avati <avati@gluster.com> | 2010-09-29 06:53:03 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-09-29 06:34:35 -0700 |
commit | b8c42e5cef817bdd0270b1991c0a365aa321f7cc (patch) | |
tree | 629473e5e85a810f8518bee099472a655589ae06 /xlators/cluster/afr/src/afr.h | |
parent | 87697e7ed88ca650fe70e26d59b67254ed2393f9 (diff) |
replicate: keep read_child in inode ctx as up-to-date as possible
In every transaction check if the currently set read child in the
inode context failed in the fop and set it to another subvol on
which the latest fop has passed. This will prevent read fops landing
on subvols which have witnessed a failure.
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 1172 (ls -lh on NFS mount of 2-mirror replicate gives incorrect file size)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1172
Diffstat (limited to 'xlators/cluster/afr/src/afr.h')
-rw-r--r-- | xlators/cluster/afr/src/afr.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/afr.h b/xlators/cluster/afr/src/afr.h index 749264a8d65..e64a6fe1529 100644 --- a/xlators/cluster/afr/src/afr.h +++ b/xlators/cluster/afr/src/afr.h @@ -609,6 +609,7 @@ typedef struct { unsigned int *pre_op_done; unsigned int *opened_on; /* which subvolumes the fd is open on */ unsigned int *pre_op_piggyback; + int flags; int32_t wbflags; uint64_t up_count; /* number of CHILD_UPs this fd has seen */ |