Skip to content

Commit

Permalink
Merge branch '10.3' into 10.4
Browse files Browse the repository at this point in the history
  • Loading branch information
sujatha-s committed Nov 12, 2020
2 parents 972dc6e + bafb011 commit b2029c0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion sql/log.h
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ class MYSQL_BIN_LOG: public TC_LOG, private MYSQL_LOG
{
bytes_written = 0;
}
void harvest_bytes_written(ulonglong* counter)
void harvest_bytes_written(Atomic_counter<uint64> *counter)
{
#ifndef DBUG_OFF
char buf1[22],buf2[22];
Expand Down
4 changes: 2 additions & 2 deletions sql/rpl_rli.cc
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ static inline int add_relay_log(Relay_log_info* rli,LOG_INFO* linfo)
DBUG_RETURN(1);
}
rli->log_space_total += s.st_size;
DBUG_PRINT("info",("log_space_total: %llu", rli->log_space_total));
DBUG_PRINT("info",("log_space_total: %llu", uint64(rli->log_space_total)));
DBUG_RETURN(0);
}

Expand Down Expand Up @@ -1252,7 +1252,7 @@ int purge_relay_logs(Relay_log_info* rli, THD *thd, bool just_reset,
mysql_mutex_unlock(rli->relay_log.get_log_lock());
}
err:
DBUG_PRINT("info",("log_space_total: %llu",rli->log_space_total));
DBUG_PRINT("info",("log_space_total: %llu", uint64(rli->log_space_total)));
mysql_mutex_unlock(&rli->data_lock);
DBUG_RETURN(error);
}
Expand Down
3 changes: 2 additions & 1 deletion sql/rpl_rli.h
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ class Relay_log_info : public Slave_reporting_capability
threads, the SQL thread sets it to unblock the I/O thread and make it
temporarily forget about the constraint.
*/
ulonglong log_space_limit,log_space_total;
ulonglong log_space_limit;
Atomic_counter<uint64> log_space_total;
bool ignore_log_space_limit;

/*
Expand Down
4 changes: 2 additions & 2 deletions sql/slave.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2781,7 +2781,7 @@ static bool wait_for_relay_log_space(Relay_log_info* rli)
DBUG_PRINT("info", ("log_space_limit=%llu log_space_total=%llu "
"ignore_log_space_limit=%d "
"sql_force_rotate_relay=%d",
rli->log_space_limit, rli->log_space_total,
rli->log_space_limit, uint64(rli->log_space_total),
(int) rli->ignore_log_space_limit,
(int) rli->sql_force_rotate_relay));
}
Expand Down Expand Up @@ -5039,7 +5039,7 @@ Stopping slave I/O thread due to out-of-memory error from master");
{
DBUG_PRINT("info", ("log_space_limit=%llu log_space_total=%llu "
"ignore_log_space_limit=%d",
rli->log_space_limit, rli->log_space_total,
rli->log_space_limit, uint64(rli->log_space_total),
(int) rli->ignore_log_space_limit));
}
#endif
Expand Down

0 comments on commit b2029c0

Please sign in to comment.