path: root/extras/thin-arbiter/
diff options
authorRavishankar N <>2017-01-13 09:55:49 +0530
committerPranith Kumar Karampuri <>2017-01-13 19:59:55 -0800
commitef341819eaedb703bc2f7bc1cd2e5ac855fed42b (patch)
treee6cc852758627cc068ffa5372f98da42fa2f79d1 /extras/thin-arbiter/
parentb2ead317933a48ce00f3ee1460080cf4ad16ec9b (diff)
afr: Avoid resetting event_gen when brick is always down
Backport of Problem: __afr_set_in_flight_sb_status(), which resets event_gen to zero, is called if failed_subvols[i] is non-zero for any brick. But failed_subvols[i] is true even if the brick was down *before* the transaction started. Hence say if 1 brick is down in a replica-3, every writev that comes will trigger an inode refresh because of this resetting, as seen from the no. of FSTATs in the profile info in the BZ. Fix: Reset event gen only if the brick was previously a valid read child and the FOP failed on it the first time. Also `s/afr_inode_read_subvol_reset/afr_inode_event_gen_reset` because the function only resets event gen and not the data/metadata readable. Change-Id: I7840f7123d3b3e0404743988088ec349391ca980 BUG: 1412890 Signed-off-by: Ravishankar N <> Reviewed-on: Smoke: Gluster Build System <> Reviewed-by: Krutika Dhananjay <> Reviewed-by: Pranith Kumar Karampuri <> NetBSD-regression: NetBSD Build System <> Tested-by: Pranith Kumar Karampuri <> CentOS-regression: Gluster Build System <>
Diffstat (limited to 'extras/thin-arbiter/')
0 files changed, 0 insertions, 0 deletions