diff options
author | Michael Widenius <monty@mariadb.org> | 2018-04-11 03:18:03 +0300 |
---|---|---|
committer | Michael Widenius <monty@mariadb.org> | 2018-04-16 20:16:43 +0300 |
commit | 3bae6a2b9886d185509dce0dacc489dda42152aa (patch) | |
tree | 6c02aa5520da92d77620278deec6727a4c940be2 /sql/rpl_rli.cc | |
parent | ddc5764303dd72f68d2c69cc574a6f42e8bcf86d (diff) | |
download | mariadb-git-3bae6a2b9886d185509dce0dacc489dda42152aa.tar.gz |
Remove not needed calls to print_error
Diffstat (limited to 'sql/rpl_rli.cc')
-rw-r--r-- | sql/rpl_rli.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sql/rpl_rli.cc b/sql/rpl_rli.cc index c79a6440e84..6229f3e1faf 100644 --- a/sql/rpl_rli.cc +++ b/sql/rpl_rli.cc @@ -1537,11 +1537,9 @@ scan_one_gtid_slave_pos_table(THD *thd, HASH *hash, DYNAMIC_ARRAY *array, goto end; bitmap_set_all(table->read_set); - if ((err= table->file->ha_rnd_init_with_error(1))) - { - table->file->print_error(err, MYF(0)); + if (unlikely(err= table->file->ha_rnd_init_with_error(1))) goto end; - } + table_scanned= true; for (;;) { |