Server crashes in part_of_refkey or assertion `!created && key_to_save < (int)s->keys' failed in TABLE::use_index(int) or with join_cache_level>2

Description

Test case

Stack trace from 5.5 debug commit ceba41c0951d1d8c9b4961772b4a088769814a66

Stack trace from 5.5.48 release build

Environment

None

Status

Assignee

Sergei Petrunia

Reporter

Elena Stepanova

Labels

None

External issue ID

None

External issue ID

None

Components

Fix versions

Affects versions

Priority

Major
Configure