|
1 |
| -/* Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved. |
| 1 | +/* Copyright (c) 2010, 2019, Oracle and/or its affiliates. All rights reserved. |
2 | 2 |
|
3 | 3 | This program is free software; you can redistribute it and/or modify
|
4 | 4 | it under the terms of the GNU General Public License, version 2.0,
|
@@ -160,7 +160,7 @@ int Rpl_info_table::do_init_info(enum_find_method method, uint instance) {
|
160 | 160 | /*
|
161 | 161 | Unlocks and closes the rpl_info table.
|
162 | 162 | */
|
163 |
| - access->close_table(thd, table, &backup, error); |
| 163 | + error = access->close_table(thd, table, &backup, error) || error; |
164 | 164 | thd->variables.sql_mode = saved_mode;
|
165 | 165 | thd->variables.option_bits = saved_options;
|
166 | 166 | access->drop_thd(thd);
|
@@ -260,7 +260,7 @@ int Rpl_info_table::do_flush_info(const bool force) {
|
260 | 260 | /*
|
261 | 261 | Unlocks and closes the rpl_info table.
|
262 | 262 | */
|
263 |
| - access->close_table(thd, table, &backup, error); |
| 263 | + error = access->close_table(thd, table, &backup, error) || error; |
264 | 264 | thd->is_operating_substatement_implicitly = false;
|
265 | 265 | thd->variables.sql_mode = saved_mode;
|
266 | 266 | thd->variables.option_bits = saved_options;
|
@@ -310,7 +310,7 @@ int Rpl_info_table::do_clean_info() {
|
310 | 310 | /*
|
311 | 311 | Unlocks and closes the rpl_info table.
|
312 | 312 | */
|
313 |
| - access->close_table(thd, table, &backup, error); |
| 313 | + error = access->close_table(thd, table, &backup, error) || error; |
314 | 314 | thd->variables.sql_mode = saved_mode;
|
315 | 315 | thd->variables.option_bits = saved_options;
|
316 | 316 | access->drop_thd(thd);
|
@@ -404,7 +404,7 @@ int Rpl_info_table::do_reset_info(uint nparam, const char *param_schema,
|
404 | 404 | /*
|
405 | 405 | Unlocks and closes the rpl_info table.
|
406 | 406 | */
|
407 |
| - info->access->close_table(thd, table, &backup, error); |
| 407 | + error = info->access->close_table(thd, table, &backup, error) || error; |
408 | 408 | thd->variables.sql_mode = saved_mode;
|
409 | 409 | thd->variables.option_bits = saved_options;
|
410 | 410 | info->access->drop_thd(thd);
|
@@ -560,7 +560,7 @@ bool Rpl_info_table::do_count_info(uint nparam, const char *param_schema,
|
560 | 560 | /*
|
561 | 561 | Unlocks and closes the rpl_info table.
|
562 | 562 | */
|
563 |
| - info->access->close_table(thd, table, &backup, error); |
| 563 | + error = info->access->close_table(thd, table, &backup, error) || error; |
564 | 564 | thd->variables.sql_mode = saved_mode;
|
565 | 565 | info->access->drop_thd(thd);
|
566 | 566 | delete info;
|
@@ -715,7 +715,7 @@ bool Rpl_info_table::do_update_is_transactional() {
|
715 | 715 | error = false;
|
716 | 716 |
|
717 | 717 | end:
|
718 |
| - access->close_table(thd, table, &backup, 0); |
| 718 | + error = access->close_table(thd, table, &backup, 0) || error; |
719 | 719 | thd->variables.sql_mode = saved_mode;
|
720 | 720 | thd->variables.option_bits = saved_options;
|
721 | 721 | access->drop_thd(thd);
|
|
0 commit comments