Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
c14dd0d1
Commit
c14dd0d1
authored
Jan 03, 2022
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup: Remove RECV_READ_AHEAD_AREA
Let us directly use the constant 32 in recv_read_in_area().
parent
89a0364f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
storage/innobase/log/log0recv.cc
storage/innobase/log/log0recv.cc
+4
-9
No files found.
storage/innobase/log/log0recv.cc
View file @
c14dd0d1
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
Copyright (c) 1997, 2017, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 1997, 2017, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2012, Facebook Inc.
Copyright (c) 2012, Facebook Inc.
Copyright (c) 2013, 202
1
, MariaDB Corporation.
Copyright (c) 2013, 202
2
, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under
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
the terms of the GNU General Public License as published by the Free Software
...
@@ -56,9 +56,6 @@ Created 9/20/1997 Heikki Tuuri
...
@@ -56,9 +56,6 @@ Created 9/20/1997 Heikki Tuuri
#include "srv0start.h"
#include "srv0start.h"
#include "fil0pagecompress.h"
#include "fil0pagecompress.h"
/** Read-ahead area in applying log records to file pages */
#define RECV_READ_AHEAD_AREA 32U
/** The recovery system */
/** The recovery system */
recv_sys_t
recv_sys
;
recv_sys_t
recv_sys
;
/** TRUE when recv_init_crash_recovery() has been called. */
/** TRUE when recv_init_crash_recovery() has been called. */
...
@@ -2519,11 +2516,9 @@ page number.
...
@@ -2519,11 +2516,9 @@ page number.
@param[in] page_id page id */
@param[in] page_id page id */
static
void
recv_read_in_area
(
page_id_t
page_id
)
static
void
recv_read_in_area
(
page_id_t
page_id
)
{
{
uint32_t
page_nos
[
RECV_READ_AHEAD_AREA
];
uint32_t
page_nos
[
32
];
compile_time_assert
(
ut_is_2pow
(
RECV_READ_AHEAD_AREA
));
page_id
.
set_page_no
(
ut_2pow_round
(
page_id
.
page_no
(),
32U
));
page_id
.
set_page_no
(
ut_2pow_round
(
page_id
.
page_no
(),
const
uint32_t
up_limit
=
page_id
.
page_no
()
+
32
;
RECV_READ_AHEAD_AREA
));
const
ulint
up_limit
=
page_id
.
page_no
()
+
RECV_READ_AHEAD_AREA
;
uint32_t
*
p
=
page_nos
;
uint32_t
*
p
=
page_nos
;
for
(
recv_sys_t
::
map
::
iterator
i
=
recv_sys
.
pages
.
lower_bound
(
page_id
);
for
(
recv_sys_t
::
map
::
iterator
i
=
recv_sys
.
pages
.
lower_bound
(
page_id
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment