summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorKarthik Kamath <karthik.kamath@oracle.com>2018-02-14 09:35:18 +0530
committerKarthik Kamath <karthik.kamath@oracle.com>2018-02-14 09:35:18 +0530
commitddaf0f14704be3fd3d6960f7a3e2fdd0125e2dfd (patch)
tree047032bd90f77debad06fc4b2e934ff50f35885d /storage
parente4784703ee44d0a0a497a1a411dea20987d501ad (diff)
downloadmariadb-git-ddaf0f14704be3fd3d6960f7a3e2fdd0125e2dfd.tar.gz
Diffstat (limited to 'storage')
-rw-r--r--storage/innobase/handler/ha_innodb.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc
index 1c6763ef93a..0591987f4ae 100644
--- a/storage/innobase/handler/ha_innodb.cc
+++ b/storage/innobase/handler/ha_innodb.cc
@@ -1,6 +1,6 @@
/*****************************************************************************
-Copyright (c) 2000, 2015, Oracle and/or its affiliates. All Rights Reserved.
+Copyright (c) 2000, 2018, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2008, 2009 Google Inc.
Copyright (c) 2009, Percona Inc.
@@ -9225,8 +9225,10 @@ ha_innobase::start_stmt(
case SQLCOM_INSERT:
case SQLCOM_UPDATE:
case SQLCOM_DELETE:
+ case SQLCOM_REPLACE:
init_table_handle_for_HANDLER();
prebuilt->select_lock_type = LOCK_X;
+ prebuilt->stored_select_lock_type = LOCK_X;
error = row_lock_table_for_mysql(prebuilt, NULL, 1);
if (error != DB_SUCCESS) {