diff options
author | Jan Lindström <jan.lindstrom@mariadb.com> | 2022-01-21 13:02:08 +0200 |
---|---|---|
committer | Jan Lindström <jan.lindstrom@mariadb.com> | 2022-01-22 09:14:26 +0200 |
commit | 2b6f235ae0ee779c65b99326c33c1c780d24383d (patch) | |
tree | 702bbed89abe5542f24e9675c723b02cb51a9beb | |
parent | f99d141cd26359acd188858a78f3fed607e7a90c (diff) | |
download | mariadb-git-bb-10.2-MDEV-21308.tar.gz |
MDEV-21308 : WSREP: binlog ... cache not empty warnings on server with WSREP disabledbb-10.2-MDEV-21308
Remove output if wsrep is not enabled.
-rw-r--r-- | sql/log.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/log.cc b/sql/log.cc index d94f87b90b5..e7a82b2f005 100644 --- a/sql/log.cc +++ b/sql/log.cc @@ -1650,7 +1650,7 @@ static int binlog_close_connection(handlerton *hton, THD *thd) binlog_cache_mngr *const cache_mngr= (binlog_cache_mngr*) thd_get_ha_data(thd, binlog_hton); #ifdef WITH_WSREP - if (cache_mngr && !cache_mngr->trx_cache.empty()) { + if (WSREP(thd) && cache_mngr && !cache_mngr->trx_cache.empty()) { IO_CACHE* cache= get_trans_log(thd); uchar *buf; size_t len=0; |