Skip to content

Commit cbdf62a

Browse files
committed
MDEV-25975 merge fixup
1 parent d172df9 commit cbdf62a

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

storage/innobase/dict/dict0stats_bg.cc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,9 @@ Created Apr 25, 2012 Vasil Dimov
3737
# include "wsrep.h"
3838
# include "log.h"
3939
# include "wsrep_mysqld.h"
40-
extern uint32 wsrep_sst_disable_writes;
41-
# define wsrep_sst_disable_writes \
42-
my_atomic_load32_explicit(&wsrep_sst_disable_writes, MY_MEMORY_ORDER_RELAXED)
40+
extern Atomic_relaxed<bool> wsrep_sst_disable_writes;
4341
#else
44-
# define wsrep_sst_disable_writes false
42+
constexpr bool wsrep_sst_disable_writes= false;
4543
#endif
4644

4745
#include <vector>

storage/innobase/fts/fts0opt.cc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,9 @@ Completed 2011/7/10 Sunny and Jimmy Yang
4040
#include "wsrep.h"
4141

4242
#ifdef WITH_WSREP
43-
extern uint32 wsrep_sst_disable_writes;
44-
# define wsrep_sst_disable_writes \
45-
my_atomic_load32_explicit(&wsrep_sst_disable_writes, MY_MEMORY_ORDER_RELAXED)
43+
extern Atomic_relaxed<bool> wsrep_sst_disable_writes;
4644
#else
47-
# define wsrep_sst_disable_writes false
45+
constexpr bool wsrep_sst_disable_writes= false;
4846
#endif
4947

5048
/** The FTS optimize thread's work queue. */

storage/innobase/log/log0log.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1460,14 +1460,13 @@ bool log_checkpoint(bool sync)
14601460

14611461
ut_ad(oldest_lsn >= log_sys.last_checkpoint_lsn);
14621462
const lsn_t age = oldest_lsn - log_sys.last_checkpoint_lsn;
1463-
if (age > SIZE_OF_MLOG_CHECKPOINT
1464-
+ LOG_BLOCK_HDR_SIZE + LOG_BLOCK_CHECKSUM) {
1463+
if (age > SIZE_OF_MLOG_CHECKPOINT + log_sys.framing_size()) {
14651464
/* Some log has been written since the previous checkpoint. */
14661465
} else if (age > SIZE_OF_MLOG_CHECKPOINT
14671466
&& !((log_sys.log.calc_lsn_offset(oldest_lsn)
14681467
^ log_sys.log.calc_lsn_offset(
14691468
log_sys.last_checkpoint_lsn))
1470-
& ~lsn_t(OS_FILE_LOG_BLOCK_SIZE - 1))) {
1469+
& ~lsn_t{OS_FILE_LOG_BLOCK_SIZE - 1})) {
14711470
/* Some log has been written to the same log block. */
14721471
} else if (srv_shutdown_state > SRV_SHUTDOWN_INITIATED) {
14731472
/* MariaDB 10.3 startup expects the redo log file to be

0 commit comments

Comments
 (0)