summaryrefslogtreecommitdiff
path: root/sql/sql_class.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r--sql/sql_class.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc
index 6276b00b939..245bc65ebc8 100644
--- a/sql/sql_class.cc
+++ b/sql/sql_class.cc
@@ -5464,8 +5464,8 @@ thd_need_ordering_with(const MYSQL_THD thd, const MYSQL_THD other_thd)
the caller should guarantee that the BF state won't change.
(e.g. InnoDB does it by keeping lock_sys.mutex locked)
*/
- if (WSREP_ON && wsrep_thd_is_BF(thd, false) &&
- wsrep_thd_is_BF(other_thd, false))
+ if (WSREP_ON &&
+ wsrep_thd_order_before(thd, other_thd))
return 0;
#endif /* WITH_WSREP */
rgi= thd->rgi_slave;