Commit a1d42a6f authored by kevg's avatar kevg Committed by Aleksey Midenkov

Misc: code cleanup

parent 06ad9c01
......@@ -366,7 +366,8 @@ int mysql_update(THD *thd,
{
DBUG_RETURN(1);
}
bool has_vers_fields= check_has_vers_fields(fields);
bool has_vers_fields=
table->versioned() ? check_has_vers_fields(fields) : false;
if (check_key_in_view(thd, table_list))
{
my_error(ER_NON_UPDATABLE_TABLE, MYF(0), table_list->alias, "UPDATE");
......
......@@ -243,8 +243,13 @@ read_trx_id(const rec_t *rec) {
*/
static
void
find_best_match(mtr_t &mtr, btr_pcur_t &pcur, bool backwards,
timeval commit_ts, const rec_t *rec) {
find_best_match(
mtr_t &mtr,
btr_pcur_t &pcur,
bool backwards,
timeval commit_ts,
const rec_t *rec)
{
btr_pcur_t best;
btr_pcur_init(&best);
btr_pcur_copy_stored_position(&best, &pcur);
......
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