[Commits] 7af7b669eb1: c
revision-id: 7af7b669eb14d86c19409a058607d1ba9e2ceff4 (mariadb-10.2.22-36-g7af7b669eb1) parent(s): b68d5c38a41908feb78857d4437626c1adf268e5 author: Oleksandr Byelkin committer: Oleksandr Byelkin timestamp: 2019-03-06 13:36:44 +0100 message: c --- sql/handler.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sql/handler.cc b/sql/handler.cc index dc454fa1c06..d307433cf5d 100644 --- a/sql/handler.cc +++ b/sql/handler.cc @@ -3308,8 +3308,7 @@ void handler::get_auto_increment(ulonglong offset, ulonglong increment, MY_BITMAP *old_read_set; bool rnd_inited= (inited == RND); - if (rnd_inited && - ha_rnd_end()) + if (rnd_inited && ha_rnd_end()) return; old_read_set= table->prepare_for_keyread(table->s->next_number_index); @@ -3320,7 +3319,7 @@ 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 && + if (rnd_inited) ha_rnd_init(0); return; }
participants (1)
-
Oleksandr Byelkin