Skip to content

Commit

Permalink
MDEV-21308 : WSREP: binlog ... cache not empty warnings on server wit…
Browse files Browse the repository at this point in the history
…h WSREP disabled

Remove output if wsrep is not enabled.
  • Loading branch information
Jan Lindström committed Jan 22, 2022
1 parent f99d141 commit 2b6f235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/log.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2b6f235

Please sign in to comment.