Skip to content

Commit

Permalink
More DBUG_PRINT's to make it easier to debug
Browse files Browse the repository at this point in the history
parallel replication
  • Loading branch information
montywi committed Sep 1, 2016
1 parent b6e4362 commit addb38f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions storage/innobase/handler/ha_innodb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4257,6 +4257,7 @@ innobase_commit(
trx_t* trx;

DBUG_ENTER("innobase_commit");
DBUG_PRINT("enter", ("commit_trx: %d", commit_trx));
DBUG_ASSERT(hton == innodb_hton_ptr);
DBUG_PRINT("trans", ("ending transaction"));

Expand Down
7 changes: 7 additions & 0 deletions storage/innobase/log/log0log.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1268,6 +1268,10 @@ log_group_file_header_flush(
}
#endif /* UNIV_DEBUG */
if (log_do_write) {
DBUG_PRINT("ib_log", ("write " LSN_PF
" group " ULINTPF
" file " ULINTPF " header",
start_lsn, group->id, nth_file));
log_sys->n_log_ios++;

MONITOR_INC(MONITOR_LOG_IO);
Expand Down Expand Up @@ -1539,6 +1543,9 @@ log_write_up_to(
return;
}

DBUG_PRINT("ib_log", ("write " LSN_PF " to " LSN_PF,
log_sys->written_to_all_lsn,
log_sys->lsn));
#ifdef UNIV_DEBUG
if (log_debug_writes) {
fprintf(stderr,
Expand Down
6 changes: 5 additions & 1 deletion storage/innobase/trx/trx0trx.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1138,6 +1138,7 @@ trx_flush_log_if_needed_low(
lsn_t lsn) /*!< in: lsn up to which logs are to be
flushed. */
{
DBUG_ENTER("trx_flush_log_if_needed_low");
switch (srv_flush_log_at_trx_commit) {
case 0:
/* Do nothing */
Expand All @@ -1156,6 +1157,7 @@ trx_flush_log_if_needed_low(
default:
ut_error;
}
DBUG_VOID_RETURN;
}

/**********************************************************************//**
Expand Down Expand Up @@ -1690,15 +1692,17 @@ trx_commit_complete_for_mysql(
trx_t* trx) /*!< in/out: transaction */
{
ut_a(trx);
DBUG_ENTER("trx_commit_complete_for_mysql");

if (!trx->must_flush_log_later
|| (srv_flush_log_at_trx_commit == 1 && trx->active_commit_ordered)) {
return;
DBUG_VOID_RETURN;
}

trx_flush_log_if_needed(trx->commit_lsn, trx);

trx->must_flush_log_later = FALSE;
DBUG_VOID_RETURN;
}

/**********************************************************************//**
Expand Down

0 comments on commit addb38f

Please sign in to comment.