summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2019-08-22 17:37:13 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2019-08-22 17:37:13 +0300
commitb01a95f6fc47151345bf298b606492a962e28150 (patch)
tree1506b103f0cc77b337da7455499299d7d872a1b4 /storage
parent5b29820d800180816abd67f24414eaa0d51dd6b5 (diff)
downloadmariadb-git-b01a95f6fc47151345bf298b606492a962e28150.tar.gz
row_undo_mod_remove_clust_low(): Remove duplicated code
Some code was duplicated near the start of the function, only for InnoDB, not XtraDB. This was noticed by comparing the InnoDB between MariaDB and MySQL.
Diffstat (limited to 'storage')
-rw-r--r--storage/innobase/row/row0umod.cc32
1 files changed, 1 insertions, 31 deletions
diff --git a/storage/innobase/row/row0umod.cc b/storage/innobase/row/row0umod.cc
index 1d4a5b9b40f..90fd3c79c57 100644
--- a/storage/innobase/row/row0umod.cc
+++ b/storage/innobase/row/row0umod.cc
@@ -1,7 +1,7 @@
/*****************************************************************************
Copyright (c) 1997, 2016, Oracle and/or its affiliates. All Rights Reserved.
-Copyright (c) 2017, MariaDB Corporation.
+Copyright (c) 2017, 2019, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
@@ -212,36 +212,6 @@ row_undo_mod_remove_clust_low(
return(DB_SUCCESS);
}
- trx_id_offset = btr_cur_get_index(btr_cur)->trx_id_offset;
-
- if (!trx_id_offset) {
- mem_heap_t* heap = NULL;
- ulint trx_id_col;
- const ulint* offsets;
- ulint len;
-
- trx_id_col = dict_index_get_sys_col_pos(
- btr_cur_get_index(btr_cur), DATA_TRX_ID);
- ut_ad(trx_id_col > 0);
- ut_ad(trx_id_col != ULINT_UNDEFINED);
-
- offsets = rec_get_offsets(
- btr_cur_get_rec(btr_cur), btr_cur_get_index(btr_cur),
- NULL, trx_id_col + 1, &heap);
-
- trx_id_offset = rec_get_nth_field_offs(
- offsets, trx_id_col, &len);
- ut_ad(len == DATA_TRX_ID_LEN);
- mem_heap_free(heap);
- }
-
- if (trx_read_trx_id(btr_cur_get_rec(btr_cur) + trx_id_offset)
- != node->new_trx_id) {
- /* The record must have been purged and then replaced
- with a different one. */
- return(DB_SUCCESS);
- }
-
/* We are about to remove an old, delete-marked version of the
record that may have been delete-marked by a different transaction
than the rolling-back one. */