Commit 2f1a4328 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-29613 fixup: clang -Wunused-but-set-variable

parent 7434eb56
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
Copyright (c) 1997, 2017, Oracle and/or its affiliates. All Rights Reserved. Copyright (c) 1997, 2017, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2012, Facebook Inc. 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 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 the terms of the GNU General Public License as published by the Free Software
...@@ -2882,7 +2882,9 @@ bool recv_parse_log_recs(lsn_t checkpoint_lsn, store_t* store, ...@@ -2882,7 +2882,9 @@ bool recv_parse_log_recs(lsn_t checkpoint_lsn, store_t* store,
are included within the buffer */ are included within the buffer */
ulint total_len = 0; ulint total_len = 0;
#ifdef DBUG_TRACE
ulint n_recs = 0; ulint n_recs = 0;
#endif
bool only_mlog_file = true; bool only_mlog_file = true;
ulint mlog_rec_len = 0; ulint mlog_rec_len = 0;
...@@ -2935,7 +2937,9 @@ bool recv_parse_log_recs(lsn_t checkpoint_lsn, store_t* store, ...@@ -2935,7 +2937,9 @@ bool recv_parse_log_recs(lsn_t checkpoint_lsn, store_t* store,
} }
total_len += len; total_len += len;
#ifdef DBUG_TRACE
n_recs++; n_recs++;
#endif
ptr += len; ptr += len;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment