Skip to content
Permalink
Browse files
Cleanup: use constexpr for SRV_UNDO_TABLESPACE_SIZE_IN_PAGES
  • Loading branch information
dr-m committed Dec 4, 2019
1 parent bf30341 commit e5dfdc5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
@@ -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;

@@ -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. */

0 comments on commit e5dfdc5

Please sign in to comment.