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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
241e97fb
Commit
241e97fb
authored
Nov 29, 2005
by
osku
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support >4GB buffer pool and log files on 64-bit Windows. Fixes bug
#12701. Synced from MySQL.
parent
05392a9d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
9 deletions
+30
-9
handler/ha_innodb.cc
handler/ha_innodb.cc
+27
-7
handler/ha_innodb.h
handler/ha_innodb.h
+3
-2
No files found.
handler/ha_innodb.cc
View file @
241e97fb
...
...
@@ -141,15 +141,16 @@ uint innobase_init_flags = 0;
ulong
innobase_cache_size
=
0
;
ulong
innobase_large_page_size
=
0
;
/* The default values for the following, type long
, start-up parameters
are declared in mysqld.cc: */
/* The default values for the following, type long
or longlong, start-up
parameters
are declared in mysqld.cc: */
long
innobase_mirrored_log_groups
,
innobase_log_files_in_group
,
innobase_log_file_size
,
innobase_log_buffer_size
,
innobase_buffer_pool_awe_mem_mb
,
innobase_buffer_pool_size
,
innobase_additional_mem_pool_size
,
innobase_file_io_threads
,
innobase_lock_wait_timeout
,
innobase_force_recovery
,
innobase_open_files
;
innobase_log_buffer_size
,
innobase_buffer_pool_awe_mem_mb
,
innobase_additional_mem_pool_size
,
innobase_file_io_threads
,
innobase_lock_wait_timeout
,
innobase_force_recovery
,
innobase_open_files
;
longlong
innobase_buffer_pool_size
,
innobase_log_file_size
;
/* The default values for the following char* start-up parameters
are determined in innobase_init below: */
...
...
@@ -1230,6 +1231,25 @@ innobase_init(void)
ut_a
(
DATA_MYSQL_TRUE_VARCHAR
==
(
ulint
)
MYSQL_TYPE_VARCHAR
);
/* Check that values don't overflow on 32-bit systems. */
if
(
sizeof
(
ulint
)
==
4
)
{
if
(
innobase_buffer_pool_size
>
UINT_MAX32
)
{
sql_print_error
(
"innobase_buffer_pool_size can't be over 4GB"
" on 32-bit systems"
);
DBUG_RETURN
(
0
);
}
if
(
innobase_log_file_size
>
UINT_MAX32
)
{
sql_print_error
(
"innobase_log_file_size can't be over 4GB"
" on 32-bit systems"
);
DBUG_RETURN
(
0
);
}
}
os_innodb_umask
=
(
ulint
)
my_umask
;
/* First calculate the default path for innodb_data_home_dir etc.,
...
...
handler/ha_innodb.h
View file @
241e97fb
...
...
@@ -218,8 +218,9 @@ extern ulong innobase_large_page_size;
extern
char
*
innobase_home
,
*
innobase_tmpdir
,
*
innobase_logdir
;
extern
long
innobase_lock_scan_time
;
extern
long
innobase_mirrored_log_groups
,
innobase_log_files_in_group
;
extern
long
innobase_log_file_size
,
innobase_log_buffer_size
;
extern
long
innobase_buffer_pool_size
,
innobase_additional_mem_pool_size
;
extern
longlong
innobase_buffer_pool_size
,
innobase_log_file_size
;
extern
long
innobase_log_buffer_size
;
extern
long
innobase_additional_mem_pool_size
;
extern
long
innobase_buffer_pool_awe_mem_mb
;
extern
long
innobase_file_io_threads
,
innobase_lock_wait_timeout
;
extern
long
innobase_force_recovery
;
...
...
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