Commit 59998d34 authored by Aleksey Midenkov's avatar Aleksey Midenkov

MDEV-23446 Missed error code fix

parent 3ffd5f28
......@@ -2461,7 +2461,7 @@ int multi_update::send_data(List<Item> &not_used_values)
if (has_vers_fields && table->versioned(VERS_TIMESTAMP))
{
store_record(table, record[2]);
if (vers_insert_history_row(table))
if (unlikely(error= vers_insert_history_row(table)))
{
restore_record(table, record[2]);
goto error;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment