summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2018-01-04 20:47:34 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2018-01-04 20:47:34 +0200
commitc8e6364407ae1e471dd507dc8901c87215173492 (patch)
tree9b374656a017a30647c53ddc02238bae4c4be5f1
parent8dc77a72ea38ca2d7e16468916bedb7ce2779e7f (diff)
parent21470de1481d74df1f262cd0e16403c23baddd30 (diff)
downloadmariadb-git-c8e6364407ae1e471dd507dc8901c87215173492.tar.gz
Merge branch 10.1 into 10.2
-rw-r--r--storage/innobase/trx/trx0roll.cc7
-rw-r--r--storage/xtradb/trx/trx0roll.cc9
2 files changed, 9 insertions, 7 deletions
diff --git a/storage/innobase/trx/trx0roll.cc b/storage/innobase/trx/trx0roll.cc
index c9c77acba11..e5ff505365b 100644
--- a/storage/innobase/trx/trx0roll.cc
+++ b/storage/innobase/trx/trx0roll.cc
@@ -1,7 +1,7 @@
/*****************************************************************************
Copyright (c) 1996, 2017, Oracle and/or its affiliates. All Rights Reserved.
-Copyright (c) 2016, 2017, MariaDB Corporation.
+Copyright (c) 2016, 2018, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
@@ -808,7 +808,8 @@ trx_roll_must_shutdown()
mutex_enter(&recv_sys->mutex);
if (recv_sys->report(time)) {
- ulint n_trx = 0, n_rows = 0;
+ ulint n_trx = 0;
+ ulonglong n_rows = 0;
for (const trx_t* t = UT_LIST_GET_FIRST(trx_sys->rw_trx_list);
t != NULL;
t = UT_LIST_GET_NEXT(trx_list, t)) {
@@ -823,7 +824,7 @@ trx_roll_must_shutdown()
ib::info() << "To roll back: " << n_trx << " transactions, "
<< n_rows << " rows";
sd_notifyf(0, "STATUS=To roll back: " ULINTPF " transactions, "
- ULINTPF " rows", n_trx, n_rows);
+ "%llu rows", n_trx, n_rows);
}
mutex_exit(&recv_sys->mutex);
diff --git a/storage/xtradb/trx/trx0roll.cc b/storage/xtradb/trx/trx0roll.cc
index 9a5fcea71de..1075064a2d6 100644
--- a/storage/xtradb/trx/trx0roll.cc
+++ b/storage/xtradb/trx/trx0roll.cc
@@ -1,7 +1,7 @@
/*****************************************************************************
Copyright (c) 1996, 2017, Oracle and/or its affiliates. All Rights Reserved.
-Copyright (c) 2016, 2017, MariaDB Corporation.
+Copyright (c) 2016, 2018, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
@@ -751,7 +751,8 @@ trx_roll_must_shutdown()
mutex_enter(&recv_sys->mutex);
if (recv_sys->report(time)) {
- ulint n_trx = 0, n_rows = 0;
+ ulint n_trx = 0;
+ ulonglong n_rows = 0;
for (const trx_t* t = UT_LIST_GET_FIRST(trx_sys->rw_trx_list);
t != NULL;
t = UT_LIST_GET_NEXT(trx_list, t)) {
@@ -765,9 +766,9 @@ trx_roll_must_shutdown()
}
ib_logf(IB_LOG_LEVEL_INFO,
"To roll back: " ULINTPF " transactions, "
- ULINTPF " rows", n_trx, n_rows);
+ "%llu rows", n_trx, n_rows);
sd_notifyf(0, "STATUS=To roll back: " ULINTPF " transactions, "
- ULINTPF " rows", n_trx, n_rows);
+ "%llu rows", n_trx, n_rows);
}
mutex_exit(&recv_sys->mutex);