diff options
author | Sunil Kumar Acharya <sheggodu@redhat.com> | 2017-03-23 12:50:41 +0530 |
---|---|---|
committer | Xavier Hernandez <jahernan@redhat.com> | 2018-01-05 06:55:44 +0000 |
commit | 78d67da17356b48cf1d5a6595764650d5b200ba7 (patch) | |
tree | 92fea728f8509421f05fe516d9b08f714c6bd97c /xlators/cluster/ec/src/ec-inode-read.c | |
parent | fa903173540df5b82c295a8f7b24848098e49a41 (diff) |
cluster/ec: OpenFD heal implementation for EC
Existing EC code doesn't try to heal the OpenFD to
avoid unnecessary healing of the data later.
Fix implements the healing of open FDs before
carrying out file operations on them by making an
attempt to open the FDs on required up nodes.
BUG: 1431955
Change-Id: Ib696f59c41ffd8d5678a484b23a00bb02764ed15
Signed-off-by: Sunil Kumar Acharya <sheggodu@redhat.com>
Diffstat (limited to 'xlators/cluster/ec/src/ec-inode-read.c')
-rw-r--r-- | xlators/cluster/ec/src/ec-inode-read.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/cluster/ec/src/ec-inode-read.c b/xlators/cluster/ec/src/ec-inode-read.c index 03690ab8e96..d58ed9e5795 100644 --- a/xlators/cluster/ec/src/ec-inode-read.c +++ b/xlators/cluster/ec/src/ec-inode-read.c @@ -749,6 +749,9 @@ int32_t ec_open_cbk(call_frame_t * frame, void * cookie, xlator_t * this, } ec_combine(cbk, ec_combine_open); + + ec_update_fd_status (fd, this, idx, op_ret); + } out: |