summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2017-08-08 15:34:41 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2017-08-08 15:34:41 +0300
commitffa378949522f3dd491306ce81022c7db99378ff (patch)
tree1c50e4c8825e26bc543e4f6988288824dfd2b333
parentc3f9fdeaf5b198c87d00764c2ddd0ffc17740b18 (diff)
downloadmariadb-git-ffa378949522f3dd491306ce81022c7db99378ff.tar.gz
Follow-up to MDEV-11487: Remove InnoDB internal temporary tables
row_update_for_mysql(): Remove the wrapper function and rename the function from row_update_for_mysql_using_upd_graph(). Remove the unused parameter mysql_rec.
-rw-r--r--storage/innobase/handler/ha_innodb.cc4
-rw-r--r--storage/innobase/include/row0mysql.h5
-rw-r--r--storage/innobase/row/row0mysql.cc23
3 files changed, 6 insertions, 26 deletions
diff --git a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc
index 28818ed7388..facfe349dd1 100644
--- a/storage/innobase/handler/ha_innodb.cc
+++ b/storage/innobase/handler/ha_innodb.cc
@@ -9417,7 +9417,7 @@ ha_innobase::update_row(
innobase_srv_conc_enter_innodb(m_prebuilt);
- error = row_update_for_mysql((byte*) old_row, m_prebuilt);
+ error = row_update_for_mysql(m_prebuilt);
if (error == DB_SUCCESS && autoinc) {
/* A value for an AUTO_INCREMENT column
@@ -9532,7 +9532,7 @@ ha_innobase::delete_row(
innobase_srv_conc_enter_innodb(m_prebuilt);
- error = row_update_for_mysql((byte*) record, m_prebuilt);
+ error = row_update_for_mysql(m_prebuilt);
innobase_srv_conc_exit_innodb(m_prebuilt);
diff --git a/storage/innobase/include/row0mysql.h b/storage/innobase/include/row0mysql.h
index 8dfff46e78b..8e93faf7286 100644
--- a/storage/innobase/include/row0mysql.h
+++ b/storage/innobase/include/row0mysql.h
@@ -272,13 +272,10 @@ row_table_got_default_clust_index(
const dict_table_t* table); /*!< in: table */
/** Does an update or delete of a row for MySQL.
-@param[in] mysql_rec row in the MySQL format
@param[in,out] prebuilt prebuilt struct in MySQL handle
@return error code or DB_SUCCESS */
dberr_t
-row_update_for_mysql(
- const byte* mysql_rec,
- row_prebuilt_t* prebuilt)
+row_update_for_mysql(row_prebuilt_t* prebuilt)
MY_ATTRIBUTE((warn_unused_result));
/** This can only be used when srv_locks_unsafe_for_binlog is TRUE or this
diff --git a/storage/innobase/row/row0mysql.cc b/storage/innobase/row/row0mysql.cc
index 0b53fb07e26..e7ecca307cc 100644
--- a/storage/innobase/row/row0mysql.cc
+++ b/storage/innobase/row/row0mysql.cc
@@ -1811,14 +1811,10 @@ public:
/** Does an update or delete of a row for MySQL.
-@param[in] mysql_rec row in the MySQL format
@param[in,out] prebuilt prebuilt struct in MySQL handle
@return error code or DB_SUCCESS */
-static
dberr_t
-row_update_for_mysql_using_upd_graph(
- const byte* mysql_rec,
- row_prebuilt_t* prebuilt)
+row_update_for_mysql(row_prebuilt_t* prebuilt)
{
trx_savept_t savept;
dberr_t err;
@@ -1834,13 +1830,13 @@ row_update_for_mysql_using_upd_graph(
upd_cascade_t* processed_cascades;
bool got_s_lock = false;
- DBUG_ENTER("row_update_for_mysql_using_upd_graph");
+ DBUG_ENTER("row_update_for_mysql");
ut_ad(trx);
ut_a(prebuilt->magic_n == ROW_PREBUILT_ALLOCATED);
ut_a(prebuilt->magic_n2 == ROW_PREBUILT_ALLOCATED);
+ ut_a(prebuilt->template_type == ROW_MYSQL_WHOLE_ROW);
ut_ad(table->stat_initialized);
- UT_NOT_USED(mysql_rec);
if (!table->is_readable()) {
return(row_mysql_get_table_status(table, trx, true));
@@ -2157,19 +2153,6 @@ error:
DBUG_RETURN(err);
}
-/** Does an update or delete of a row for MySQL.
-@param[in] mysql_rec row in the MySQL format
-@param[in,out] prebuilt prebuilt struct in MySQL handle
-@return error code or DB_SUCCESS */
-dberr_t
-row_update_for_mysql(
- const byte* mysql_rec,
- row_prebuilt_t* prebuilt)
-{
- ut_a(prebuilt->template_type == ROW_MYSQL_WHOLE_ROW);
- return(row_update_for_mysql_using_upd_graph(mysql_rec, prebuilt));
-}
-
/** This can only be used when srv_locks_unsafe_for_binlog is TRUE or this
session is using a READ COMMITTED or READ UNCOMMITTED isolation level.
Before calling this function row_search_for_mysql() must have