Skip to content

Commit

Permalink
MDEV-23446 Missed error code fix
Browse files Browse the repository at this point in the history
  • Loading branch information
midenok committed Jan 12, 2021
1 parent 3ffd5f2 commit 59998d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/sql_update.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 59998d3

Please sign in to comment.