summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2021-11-12 00:33:48 +0100
committerVladislav Vaintroub <wlad@mariadb.com>2021-11-12 00:33:48 +0100
commite58a312e42ad4df55fd9d25d8793f8cf1d2d45cf (patch)
tree60487058dd255819a7db0c3a08d1d9bb6b16821d /storage
parent3480c3f95b27c8f3e6f4ecbe6262e5b80109c0d4 (diff)
parent5b21a8fafca80596afb905496dbe0fc8f790624c (diff)
downloadmariadb-git-e58a312e42ad4df55fd9d25d8793f8cf1d2d45cf.tar.gz
Merge branch '10.5' into 10.6
Diffstat (limited to 'storage')
-rw-r--r--storage/myisam/mi_delete.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/storage/myisam/mi_delete.c b/storage/myisam/mi_delete.c
index 2c829fa9860..62409a15a46 100644
--- a/storage/myisam/mi_delete.c
+++ b/storage/myisam/mi_delete.c
@@ -767,6 +767,10 @@ err:
returns how many chars was removed or 0 on error
*/
+#if defined(_MSC_VER) && defined(_M_X64) && _MSC_VER >= 1930
+#pragma optimize("g", off)
+#endif
+
static uint remove_key(MI_KEYDEF *keyinfo, uint nod_flag,
uchar *keypos, /* Where key starts */
uchar *lastkey, /* key to be removed */
@@ -891,3 +895,7 @@ static uint remove_key(MI_KEYDEF *keyinfo, uint nod_flag,
(uint) (page_end-start-s_length));
DBUG_RETURN((uint) s_length);
} /* remove_key */
+
+#if defined(_MSC_VER) && defined(_M_X64) && _MSC_VER >= 1930
+#pragma optimize("",on)
+#endif