summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr.h
diff options
context:
space:
mode:
authorkarthik-us <ksubrahm@redhat.com>2019-02-21 16:17:44 +0530
committerRavishankar N <ravishankar@redhat.com>2019-03-08 04:03:08 +0000
commit2a0f905c905de4ad1e74bf4c7998adf087756785 (patch)
treef66363f512ea65a5e886bbc0651d51b313877af6 /xlators/cluster/afr/src/afr.h
parent91f98e03ab654f212323d385bfc6fa3c0f2e4110 (diff)
cluster/afr: Add quorum checks to open & opendir fops
Problem: Currently even if open & opendir fails on quorum number of bricks, but succeeds on atleast one brick, it will result in success. This leads to inconsistency in the behaviour with other operations following the open, which has quorum checks. Fix: Add quorum checks to open & opendir fops to avoid inconsistency. Change-Id: If8fcb82072a6dc45ea6d4a6754b79763215eba2a fixes: bz#1634664 Signed-off-by: karthik-us <ksubrahm@redhat.com>
Diffstat (limited to 'xlators/cluster/afr/src/afr.h')
-rw-r--r--xlators/cluster/afr/src/afr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/afr.h b/xlators/cluster/afr/src/afr.h
index 2cc3797675e..bb80eb508ea 100644
--- a/xlators/cluster/afr/src/afr.h
+++ b/xlators/cluster/afr/src/afr.h
@@ -1332,4 +1332,6 @@ afr_lookup_has_quorum(call_frame_t *frame, xlator_t *this,
void
afr_mark_new_entry_changelog(call_frame_t *frame, xlator_t *this);
+void
+afr_handle_replies_quorum(call_frame_t *frame, xlator_t *this);
#endif /* __AFR_H__ */