diff options
author | Daniele Sciascia <daniele.sciascia@galeracluster.com> | 2019-10-24 13:05:33 +0200 |
---|---|---|
committer | Jan Lindström <jan.lindstrom@mariadb.com> | 2019-10-24 14:05:32 +0300 |
commit | 2b5f4b3ed68585b310b7ebede474928ff90d9aa2 (patch) | |
tree | 26741beb4fc5b42b8afdc6a3582f36932c8e6288 /sql/wsrep_binlog.cc | |
parent | 82f22d2f2538fd53eae071a3694c7c998df4d387 (diff) | |
download | mariadb-git-2b5f4b3ed68585b310b7ebede474928ff90d9aa2.tar.gz |
MDEV-17099 Preliminary changes for Galera XA support (#1401)
Update wsrep-lib, and adapt to wsrep-lib interface changes.
Diffstat (limited to 'sql/wsrep_binlog.cc')
-rw-r--r-- | sql/wsrep_binlog.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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: |