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
7ac53ba9
Commit
7ac53ba9
authored
Oct 02, 2012
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix innodb_buffer_pool_filename_basic.test not to require server restart
parent
9311ef86
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
18 deletions
+4
-18
mysql-test/suite/sys_vars/r/innodb_buffer_pool_filename_basic.result
...suite/sys_vars/r/innodb_buffer_pool_filename_basic.result
+0
-5
mysql-test/suite/sys_vars/t/innodb_buffer_pool_filename_basic.test
...t/suite/sys_vars/t/innodb_buffer_pool_filename_basic.test
+4
-13
No files found.
mysql-test/suite/sys_vars/r/innodb_buffer_pool_filename_basic.result
View file @
7ac53ba9
...
...
@@ -2,11 +2,6 @@ SET @orig = @@global.innodb_buffer_pool_filename;
SELECT @orig;
@orig
ib_buffer_pool
SELECT variable_value
FROM information_schema.global_status
WHERE LOWER(variable_name) = 'innodb_buffer_pool_dump_status';
variable_value
not started
SET GLOBAL innodb_buffer_pool_filename = 'innodb_foobar_dump';
SET GLOBAL innodb_buffer_pool_dump_now = ON;
SET GLOBAL innodb_buffer_pool_filename = @orig;
mysql-test/suite/sys_vars/t/innodb_buffer_pool_filename_basic.test
View file @
7ac53ba9
...
...
@@ -8,17 +8,7 @@
SET
@
orig
=
@@
global
.
innodb_buffer_pool_filename
;
SELECT
@
orig
;
# Make sure that --force-restart in the .opt file has worked and that
# the value of this status variable is not something like
# 'Buffer pool(s) dump completed at ' left from previous runs because if
# it is then the following wait condition may be satisfied without the
# dump actually being complete and file_exists may fail.
let
$status_var
=
innodb_buffer_pool_dump_status
;
let
$status_var_value
=
not
started
;
--
source
include
/
wait_for_status_var
.
inc
SELECT
variable_value
FROM
information_schema
.
global_status
WHERE
LOWER
(
variable_name
)
=
'innodb_buffer_pool_dump_status'
;
let
$old_val
=
query_get_value
(
SHOW
STATUS
LIKE
'innodb_buffer_pool_dump_status'
,
Value
,
1
);
# Try with a non-default filename
...
...
@@ -29,9 +19,10 @@ SET GLOBAL innodb_buffer_pool_dump_now = ON;
# Wait for the dump to complete
let
$wait_condition
=
SELECT
SUBSTR
(
variable_value
,
1
,
33
)
=
'Buffer pool(s) dump completed at '
SELECT
variable_value
LIKE
'Buffer pool(s) dump completed at %'
AND
variable_value
<>
'$old_val'
FROM
information_schema
.
global_status
WHERE
LOWER
(
variable_name
)
=
'innodb_buffer_pool_dump_status'
;
WHERE
variable_name
=
'innodb_buffer_pool_dump_status'
;
--
source
include
/
wait_condition
.
inc
--
file_exists
$file
...
...
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