From dc90234bda3e2074179a3e54c09a7c9694e69965 Mon Sep 17 00:00:00 2001 From: Sergey Vojtovich Date: Fri, 28 Dec 2018 01:47:17 +0400 Subject: MDEV-17441 - InnoDB transition to C++11 atomics Added lf_hash_size() macro, so that callers don't need to use atomic operations. --- storage/innobase/include/trx0sys.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'storage/innobase/include/trx0sys.h') diff --git a/storage/innobase/include/trx0sys.h b/storage/innobase/include/trx0sys.h index e73cbb81c32..92f24d036ae 100644 --- a/storage/innobase/include/trx0sys.h +++ b/storage/innobase/include/trx0sys.h @@ -704,11 +704,7 @@ public: because it may change even before this method returns. */ - uint32_t size() - { - return uint32_t(my_atomic_load32_explicit(&hash.count, - MY_MEMORY_ORDER_RELAXED)); - } + uint32_t size() { return uint32_t(lf_hash_size(&hash)); } /** -- cgit v1.2.1