summaryrefslogtreecommitdiff
path: root/storage/innobase/include/buf0rea.h
diff options
context:
space:
mode:
Diffstat (limited to 'storage/innobase/include/buf0rea.h')
-rw-r--r--storage/innobase/include/buf0rea.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/innobase/include/buf0rea.h b/storage/innobase/include/buf0rea.h
index 093750623d6..4a52f9dcd8d 100644
--- a/storage/innobase/include/buf0rea.h
+++ b/storage/innobase/include/buf0rea.h
@@ -124,8 +124,8 @@ buf_read_recv_pages(
/** The size in pages of the area which the read-ahead algorithms read if
invoked */
-#define BUF_READ_AHEAD_AREA \
- ut_min(64, ut_2_power_up(buf_pool->curr_size / 32))
+#define BUF_READ_AHEAD_AREA(b) \
+ ut_min(64, ut_2_power_up((b)->curr_size / 32))
/** @name Modes used in read-ahead @{ */
/** read only pages belonging to the insert buffer tree */