summaryrefslogtreecommitdiff
path: root/storage/innobase/read/read0read.cc
diff options
context:
space:
mode:
Diffstat (limited to 'storage/innobase/read/read0read.cc')
-rw-r--r--storage/innobase/read/read0read.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/storage/innobase/read/read0read.cc b/storage/innobase/read/read0read.cc
index 92504546130..be37a9f9e5f 100644
--- a/storage/innobase/read/read0read.cc
+++ b/storage/innobase/read/read0read.cc
@@ -1,7 +1,7 @@
/*****************************************************************************
Copyright (c) 1996, 2015, Oracle and/or its affiliates. All Rights Reserved.
-Copyright (c) 2018, 2019, MariaDB Corporation.
+Copyright (c) 2018, 2020, 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
@@ -226,10 +226,10 @@ void ReadView::open(trx_t *trx)
m_open.store(true, std::memory_order_relaxed);
else
{
- mutex_enter(&m_mutex);
+ mysql_mutex_lock(&m_mutex);
snapshot(trx);
m_open.store(true, std::memory_order_relaxed);
- mutex_exit(&m_mutex);
+ mysql_mutex_unlock(&m_mutex);
}
}
}