From 2b5f4b3ed68585b310b7ebede474928ff90d9aa2 Mon Sep 17 00:00:00 2001 From: Daniele Sciascia Date: Thu, 24 Oct 2019 13:05:33 +0200 Subject: MDEV-17099 Preliminary changes for Galera XA support (#1401) Update wsrep-lib, and adapt to wsrep-lib interface changes. --- sql/wsrep_binlog.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sql/wsrep_binlog.cc') diff --git a/sql/wsrep_binlog.cc b/sql/wsrep_binlog.cc index ecab4664d7b..84fce7c2b2d 100644 --- a/sql/wsrep_binlog.cc +++ b/sql/wsrep_binlog.cc @@ -123,7 +123,7 @@ static int wsrep_write_cache_inc(THD* const thd, DBUG_ENTER("wsrep_write_cache_inc"); my_off_t const saved_pos(my_b_tell(cache)); - if (reinit_io_cache(cache, READ_CACHE, thd->wsrep_sr().bytes_certified(), 0, 0)) + if (reinit_io_cache(cache, READ_CACHE, thd->wsrep_sr().log_position(), 0, 0)) { WSREP_ERROR("failed to initialize io-cache"); DBUG_RETURN(1);; @@ -158,7 +158,7 @@ static int wsrep_write_cache_inc(THD* const thd, } if (ret == 0) { - assert(total_length + thd->wsrep_sr().bytes_certified() == saved_pos); + assert(total_length + thd->wsrep_sr().log_position() == saved_pos); } cleanup: -- cgit v1.2.1