Skip to content

Commit addb38f

Browse files
committed
More DBUG_PRINT's to make it easier to debug
parallel replication
1 parent b6e4362 commit addb38f

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

storage/innobase/handler/ha_innodb.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4257,6 +4257,7 @@ innobase_commit(
42574257
trx_t* trx;
42584258

42594259
DBUG_ENTER("innobase_commit");
4260+
DBUG_PRINT("enter", ("commit_trx: %d", commit_trx));
42604261
DBUG_ASSERT(hton == innodb_hton_ptr);
42614262
DBUG_PRINT("trans", ("ending transaction"));
42624263

storage/innobase/log/log0log.cc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1268,6 +1268,10 @@ log_group_file_header_flush(
12681268
}
12691269
#endif /* UNIV_DEBUG */
12701270
if (log_do_write) {
1271+
DBUG_PRINT("ib_log", ("write " LSN_PF
1272+
" group " ULINTPF
1273+
" file " ULINTPF " header",
1274+
start_lsn, group->id, nth_file));
12711275
log_sys->n_log_ios++;
12721276

12731277
MONITOR_INC(MONITOR_LOG_IO);
@@ -1539,6 +1543,9 @@ log_write_up_to(
15391543
return;
15401544
}
15411545

1546+
DBUG_PRINT("ib_log", ("write " LSN_PF " to " LSN_PF,
1547+
log_sys->written_to_all_lsn,
1548+
log_sys->lsn));
15421549
#ifdef UNIV_DEBUG
15431550
if (log_debug_writes) {
15441551
fprintf(stderr,

storage/innobase/trx/trx0trx.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1138,6 +1138,7 @@ trx_flush_log_if_needed_low(
11381138
lsn_t lsn) /*!< in: lsn up to which logs are to be
11391139
flushed. */
11401140
{
1141+
DBUG_ENTER("trx_flush_log_if_needed_low");
11411142
switch (srv_flush_log_at_trx_commit) {
11421143
case 0:
11431144
/* Do nothing */
@@ -1156,6 +1157,7 @@ trx_flush_log_if_needed_low(
11561157
default:
11571158
ut_error;
11581159
}
1160+
DBUG_VOID_RETURN;
11591161
}
11601162

11611163
/**********************************************************************//**
@@ -1690,15 +1692,17 @@ trx_commit_complete_for_mysql(
16901692
trx_t* trx) /*!< in/out: transaction */
16911693
{
16921694
ut_a(trx);
1695+
DBUG_ENTER("trx_commit_complete_for_mysql");
16931696

16941697
if (!trx->must_flush_log_later
16951698
|| (srv_flush_log_at_trx_commit == 1 && trx->active_commit_ordered)) {
1696-
return;
1699+
DBUG_VOID_RETURN;
16971700
}
16981701

16991702
trx_flush_log_if_needed(trx->commit_lsn, trx);
17001703

17011704
trx->must_flush_log_later = FALSE;
1705+
DBUG_VOID_RETURN;
17021706
}
17031707

17041708
/**********************************************************************//**

0 commit comments

Comments
 (0)