From bb72b0c89298f225266a211672c93b25dcce2835 Mon Sep 17 00:00:00 2001 From: Markus Makela Date: Sat, 12 Sep 2015 04:46:47 +0300 Subject: [PATCH] Fixed compiler warnings. --- server/modules/routing/binlog/blr_file.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/server/modules/routing/binlog/blr_file.c b/server/modules/routing/binlog/blr_file.c index f6daf54d0..7d8ba20d1 100644 --- a/server/modules/routing/binlog/blr_file.c +++ b/server/modules/routing/binlog/blr_file.c @@ -764,7 +764,6 @@ uint8_t *ptr; int len; int var_block_len; int statement_len; -int checksum_len=0; int found_chksum = 0; int event_error = 0; unsigned long transaction_events = 0; @@ -1139,7 +1138,6 @@ double average_bytes = 0; check_alg, check_alg == 1 ? "BINLOG_CHECKSUM_ALG_CRC32" : "NONE or UNDEF"))); if (check_alg == 1) { - checksum_len = 4; found_chksum = 1; } else { found_chksum = 0; @@ -1225,8 +1223,6 @@ double average_bytes = 0; var_block_len = ptr[4 + 4 + 1 + 2]; statement_len = hdr.event_size - 19 - (4+4+1+2+2+var_block_len+1+db_name_len); - //if (checksum_len) - // statement_len -= checksum_len; statement_sql = calloc(1, statement_len+1); strncpy(statement_sql, (char *)ptr+4+4+1+2+2+var_block_len+1+db_name_len, statement_len); @@ -1271,8 +1267,8 @@ double average_bytes = 0; if(hdr.event_type == XID_EVENT) { /* Commit received for a transactional tables, i.e. InnoDB */ - uint64_t xid; - xid = extract_field(ptr, 64); + unsigned long long xid = (unsigned long long)extract_field(ptr, 64); + skygw_log_write(LD, "XID_EVENT: %llu", xid); if (pending_transaction > 0) { pending_transaction = 2;