summaryrefslogtreecommitdiff
path: root/sql/wsrep_binlog.cc
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2016-02-08 22:34:41 +0200
committerMonty <monty@mariadb.org>2016-02-08 22:34:41 +0200
commitb3093073b1ec076ad7ef5ef8b8fca9022864a890 (patch)
tree4a703f74b194efb2d02b2acfcf8d91f03deaa1f5 /sql/wsrep_binlog.cc
parent1ab711bebbd961b8882acf0ac0fbdd1971d54597 (diff)
downloadmariadb-git-b3093073b1ec076ad7ef5ef8b8fca9022864a890.tar.gz
Changed my_thread_id to int64 to fix compilation problem with
my_atomic_add32_explicit on windows Fixed that server_audit.c also works if one compiles with safemalloc Fixed compiler warnings
Diffstat (limited to 'sql/wsrep_binlog.cc')
-rw-r--r--sql/wsrep_binlog.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/sql/wsrep_binlog.cc b/sql/wsrep_binlog.cc
index 36917674128..7884df586a1 100644
--- a/sql/wsrep_binlog.cc
+++ b/sql/wsrep_binlog.cc
@@ -319,9 +319,9 @@ int wsrep_write_cache(wsrep_t* const wsrep,
void wsrep_dump_rbr_buf(THD *thd, const void* rbr_buf, size_t buf_len)
{
char filename[PATH_MAX]= {0};
- int len= snprintf(filename, PATH_MAX, "%s/GRA_%ld_%lld.log",
- wsrep_data_home_dir, thd->thread_id,
- (long long)wsrep_thd_trx_seqno(thd));
+ int len= snprintf(filename, PATH_MAX, "%s/GRA_%lld_%lld.log",
+ wsrep_data_home_dir, (longlong) thd->thread_id,
+ (longlong) wsrep_thd_trx_seqno(thd));
if (len >= PATH_MAX)
{
WSREP_ERROR("RBR dump path too long: %d, skipping dump.", len);
@@ -374,9 +374,9 @@ int wsrep_binlog_savepoint_rollback(THD *thd, void *sv)
void wsrep_dump_rbr_direct(THD* thd, IO_CACHE* cache)
{
char filename[PATH_MAX]= {0};
- int len= snprintf(filename, PATH_MAX, "%s/GRA_%ld_%lld.log",
- wsrep_data_home_dir, thd->thread_id,
- (long long)wsrep_thd_trx_seqno(thd));
+ int len= snprintf(filename, PATH_MAX, "%s/GRA_%lld_%lld.log",
+ wsrep_data_home_dir, (longlong) thd->thread_id,
+ (longlong) wsrep_thd_trx_seqno(thd));
size_t bytes_in_cache = 0;
// check path
if (len >= PATH_MAX)
@@ -448,8 +448,8 @@ void wsrep_dump_rbr_buf_with_header(THD *thd, const void *rbr_buf,
Log_event_writer writer(&cache);
Format_description_log_event *ev= wsrep_get_apply_format(thd);
- int len= my_snprintf(filename, PATH_MAX, "%s/GRA_%ld_%lld_v2.log",
- wsrep_data_home_dir, thd->thread_id,
+ int len= my_snprintf(filename, PATH_MAX, "%s/GRA_%lld_%lld_v2.log",
+ wsrep_data_home_dir, (longlong) thd->thread_id,
(long long) wsrep_thd_trx_seqno(thd));
if (len >= PATH_MAX)