summaryrefslogtreecommitdiff
path: root/storage/xtradb
diff options
context:
space:
mode:
authorEugene Kosov <claprix@yandex.ru>2020-03-11 16:27:37 +0300
committerEugene Kosov <claprix@yandex.ru>2020-03-11 16:27:37 +0300
commitdf88e7cefaa7dcffdc52359b73a1087e8569e000 (patch)
treef9cd6de83dd4fbfed03687157c8410e5830af681 /storage/xtradb
parentb30446c85dbf0fd402a7833e1042bc13be7fece2 (diff)
downloadmariadb-git-df88e7cefaa7dcffdc52359b73a1087e8569e000.tar.gz
fix typedef-related warning and cleanup using namespace std
Diffstat (limited to 'storage/xtradb')
-rw-r--r--storage/xtradb/include/buf0buf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/xtradb/include/buf0buf.h b/storage/xtradb/include/buf0buf.h
index e8a82f2e3e4..39fceeef384 100644
--- a/storage/xtradb/include/buf0buf.h
+++ b/storage/xtradb/include/buf0buf.h
@@ -1528,7 +1528,7 @@ buf_page_encrypt_before_write(
NOTE! The definition appears here only for other modules of this
directory (buf) to see it. Do not use from outside! */
-typedef struct {
+struct buf_tmp_buffer_t {
private:
int32 reserved; /*!< true if this slot is reserved
*/
@@ -1558,7 +1558,7 @@ public:
return !my_atomic_fas32_explicit(&reserved, true,
MY_MEMORY_ORDER_RELAXED);
}
-} buf_tmp_buffer_t;
+};
/** The common buffer control block structure
for compressed and uncompressed frames */