diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2022-10-11 15:36:24 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2022-10-11 15:36:24 +0300 |
commit | 2f1a4328cbd3c4a478d5556878596127cc874f59 (patch) | |
tree | ac0f8d51a85bdced25601a3103cb530e6822d413 | |
parent | 7434eb566e2cb832d7798196d50629dcaa1d7f79 (diff) | |
download | mariadb-git-2f1a4328cbd3c4a478d5556878596127cc874f59.tar.gz |
MDEV-29613 fixup: clang -Wunused-but-set-variable
-rw-r--r-- | storage/innobase/log/log0recv.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/storage/innobase/log/log0recv.cc b/storage/innobase/log/log0recv.cc index 4359fb6b308..0d03f49ae59 100644 --- a/storage/innobase/log/log0recv.cc +++ b/storage/innobase/log/log0recv.cc @@ -2,7 +2,7 @@ Copyright (c) 1997, 2017, Oracle and/or its affiliates. All Rights Reserved. Copyright (c) 2012, Facebook Inc. -Copyright (c) 2013, 2020, MariaDB Corporation. +Copyright (c) 2013, 2022, 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 @@ -2882,7 +2882,9 @@ loop: are included within the buffer */ ulint total_len = 0; +#ifdef DBUG_TRACE ulint n_recs = 0; +#endif bool only_mlog_file = true; ulint mlog_rec_len = 0; @@ -2935,7 +2937,9 @@ corrupted_log: } total_len += len; +#ifdef DBUG_TRACE n_recs++; +#endif ptr += len; |