Skip to content

Commit 06ad9c0

Browse files
kevgsmidenok
authored andcommitted
Misc: unneeded code after c17b5a3
1 parent d64702d commit 06ad9c0

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

sql/handler.cc

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6038,9 +6038,6 @@ int handler::ha_update_row(const uchar *old_data, uchar *new_data)
60386038
DBUG_ASSERT(new_data == table->record[0]);
60396039
DBUG_ASSERT(old_data == table->record[1]);
60406040

6041-
// it is important to keep 'old_data' intact for versioning to work correctly on slave side
6042-
if (table->file->check_table_binlog_row_based(1) && table->versioned())
6043-
memcpy(table->record[2], table->record[1], table->s->reclength);
60446041
MYSQL_UPDATE_ROW_START(table_share->db.str, table_share->table_name.str);
60456042
mark_trx_read_write();
60466043
increment_statistics(&SSV::ha_update_count);
@@ -6053,11 +6050,7 @@ int handler::ha_update_row(const uchar *old_data, uchar *new_data)
60536050
{
60546051
rows_changed++;
60556052
if (table->file->check_table_binlog_row_based(1))
6056-
{
6057-
if (table->versioned())
6058-
memcpy(table->record[1], table->record[2], table->s->reclength);
60596053
error= binlog_log_row(table, old_data, new_data, log_func);
6060-
}
60616054
}
60626055
return error;
60636056
}

0 commit comments

Comments
 (0)