[Commits] 05b1082aba0: added check
revision-id: 05b1082aba0593e308c2feb5a81c874027d59b26 (mariadb-10.2.23-76-g05b1082aba0) parent(s): 386882b70328d12cc165fa8051066b93e315e15c author: Oleksandr Byelkin committer: Oleksandr Byelkin timestamp: 2019-04-24 16:16:48 +0200 message: added check --- sql/handler.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sql/handler.cc b/sql/handler.cc index 67971cad872..ec966389d5d 100644 --- a/sql/handler.cc +++ b/sql/handler.cc @@ -3319,8 +3319,8 @@ void handler::get_auto_increment(ulonglong offset, ulonglong increment, DBUG_ASSERT(0); (void) extra(HA_EXTRA_NO_KEYREAD); *first_value= ULONGLONG_MAX; - if (rnd_inited) - ha_rnd_init_with_error(0); + if (rnd_inited && ha_rnd_init_with_error(0)) + DBUG_ASSERT(0); return; } @@ -3367,8 +3367,8 @@ void handler::get_auto_increment(ulonglong offset, ulonglong increment, ha_index_end(); table->restore_column_maps_after_keyread(old_read_set); *first_value= nr; - if (rnd_inited) - ha_rnd_init_with_error(0); + if (rnd_inited && ha_rnd_init_with_error(0)) + DBUG_ASSERT(0); return; }
participants (1)
-
Oleksandr Byelkin