Skip to content

Commit acb7dc9

Browse files
author
Pavan Naik
committed
WL#12367: MTR: GENERATE A REPORT OF NUMBER OF QUERIES RUN ON SECONDARY
ENGINE Post push fix.
1 parent c3b4bf1 commit acb7dc9

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

client/mysqltest/secondary_engine.cc

+3-3
Original file line numberDiff line numberDiff line change
@@ -486,13 +486,13 @@ bool Secondary_engine::offload_count(MYSQL *mysql, const char *mode) {
486486
///
487487
/// @param filename File to store the count value
488488
void Secondary_engine::report_offload_count(const char *filename) {
489-
m_offload_count = offload_count_after - offload_count_before;
490-
DBUG_ASSERT(m_offload_count >= 0);
489+
int count_val = offload_count_after - offload_count_before;
490+
DBUG_ASSERT(count_val >= 0);
491491

492492
std::ofstream report_file(filename, std::ios::out);
493493

494494
if (report_file.is_open()) {
495-
std::string count = std::to_string(m_offload_count);
495+
std::string count = std::to_string(count_val);
496496
report_file << count << std::endl;
497497
}
498498

client/mysqltest/secondary_engine.h

-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ class Secondary_engine {
131131

132132
bool m_change_propagation;
133133
const char *m_engine_name;
134-
int m_offload_count;
135134
std::string m_table_name;
136135
Statement_type m_stmt_type;
137136

0 commit comments

Comments
 (0)