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
e5dfdc56
Commit
e5dfdc56
authored
Dec 04, 2019
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup: use constexpr for SRV_UNDO_TABLESPACE_SIZE_IN_PAGES
parent
bf303419
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
storage/innobase/include/srv0srv.h
storage/innobase/include/srv0srv.h
+3
-2
storage/innobase/srv/srv0srv.cc
storage/innobase/srv/srv0srv.cc
+0
-4
No files found.
storage/innobase/include/srv0srv.h
View file @
e5dfdc56
...
...
@@ -321,8 +321,9 @@ extern my_bool srv_undo_log_truncate;
/* Enables or disables this prefix optimization. Disabled by default. */
extern
my_bool
srv_prefix_index_cluster_optimization
;
/** Default size of UNDO tablespace while it is created new. */
extern
const
ulint
SRV_UNDO_TABLESPACE_SIZE_IN_PAGES
;
/** Default size of UNDO tablespace (10MiB for innodb_page_size=16k) */
constexpr
ulint
SRV_UNDO_TABLESPACE_SIZE_IN_PAGES
=
(
10U
<<
20
)
/
UNIV_PAGE_SIZE_DEF
;
extern
char
*
srv_log_group_home_dir
;
...
...
storage/innobase/srv/srv0srv.cc
View file @
e5dfdc56
...
...
@@ -125,10 +125,6 @@ my_bool srv_undo_log_truncate;
/** Maximum size of undo tablespace. */
unsigned
long
long
srv_max_undo_log_size
;
/** Default undo tablespace size in UNIV_PAGEs count (10MB). */
const
ulint
SRV_UNDO_TABLESPACE_SIZE_IN_PAGES
=
((
1024
*
1024
)
*
10
)
/
UNIV_PAGE_SIZE_DEF
;
/** Set if InnoDB must operate in read-only mode. We don't do any
recovery and open all tables in RO mode instead of RW mode. We don't
sync the max trx id to disk either. */
...
...
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