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
ffc0ef63
Commit
ffc0ef63
authored
Nov 21, 2014
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Plain Diff
5.5 merge
parents
67e2e146
8ff66501
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
25 additions
and
15 deletions
+25
-15
mysql-test/suite/sys_vars/r/innodb_stats_traditional_basic.result
...st/suite/sys_vars/r/innodb_stats_traditional_basic.result
+7
-7
storage/innobase/handler/ha_innodb.cc
storage/innobase/handler/ha_innodb.cc
+2
-2
storage/innobase/srv/srv0srv.cc
storage/innobase/srv/srv0srv.cc
+2
-2
storage/innobase/sync/sync0sync.cc
storage/innobase/sync/sync0sync.cc
+5
-0
storage/xtradb/handler/ha_innodb.cc
storage/xtradb/handler/ha_innodb.cc
+2
-2
storage/xtradb/srv/srv0srv.cc
storage/xtradb/srv/srv0srv.cc
+2
-2
storage/xtradb/sync/sync0sync.cc
storage/xtradb/sync/sync0sync.cc
+5
-0
No files found.
mysql-test/suite/sys_vars/r/innodb_stats_traditional_basic.result
View file @
ffc0ef63
SET @start_global_value = @@global.innodb_stats_traditional;
SELECT @start_global_value;
@start_global_value
0
1
Valid values are 'ON' and 'OFF'
select @@global.innodb_stats_traditional in (0, 1);
@@global.innodb_stats_traditional in (0, 1)
1
select @@global.innodb_stats_traditional;
@@global.innodb_stats_traditional
0
1
select @@session.innodb_stats_traditional;
ERROR HY000: Variable 'innodb_stats_traditional' is a GLOBAL variable
show global variables like 'innodb_stats_traditional';
Variable_name Value
innodb_stats_traditional O
FF
innodb_stats_traditional O
N
show session variables like 'innodb_stats_traditional';
Variable_name Value
innodb_stats_traditional O
FF
innodb_stats_traditional O
N
select * from information_schema.global_variables where variable_name='innodb_stats_traditional';
VARIABLE_NAME VARIABLE_VALUE
INNODB_STATS_TRADITIONAL O
FF
INNODB_STATS_TRADITIONAL O
N
select * from information_schema.session_variables where variable_name='innodb_stats_traditional';
VARIABLE_NAME VARIABLE_VALUE
INNODB_STATS_TRADITIONAL O
FF
INNODB_STATS_TRADITIONAL O
N
set global innodb_stats_traditional='OFF';
select @@global.innodb_stats_traditional;
@@global.innodb_stats_traditional
...
...
@@ -89,4 +89,4 @@ ERROR 42000: Variable 'innodb_stats_traditional' can't be set to the value of 'A
SET @@global.innodb_stats_traditional = @start_global_value;
SELECT @@global.innodb_stats_traditional;
@@global.innodb_stats_traditional
0
1
storage/innobase/handler/ha_innodb.cc
View file @
ffc0ef63
...
...
@@ -16364,8 +16364,8 @@ static MYSQL_SYSVAR_ULONGLONG(stats_modified_counter, srv_stats_modified_counter
static
MYSQL_SYSVAR_BOOL
(
stats_traditional
,
srv_stats_sample_traditional
,
PLUGIN_VAR_RQCMDARG
,
"Enable traditional statistic calculation based on number of configured pages (default
fals
e)"
,
NULL
,
NULL
,
FALS
E
);
"Enable traditional statistic calculation based on number of configured pages (default
tru
e)"
,
NULL
,
NULL
,
TRU
E
);
static
MYSQL_SYSVAR_BOOL
(
adaptive_hash_index
,
btr_search_enabled
,
PLUGIN_VAR_OPCMDARG
,
...
...
storage/innobase/srv/srv0srv.cc
View file @
ffc0ef63
...
...
@@ -345,8 +345,8 @@ UNIV_INTERN my_bool srv_stats_auto_recalc = TRUE;
UNIV_INTERN
unsigned
long
long
srv_stats_modified_counter
=
0
;
/* Enable traditional statistic calculation based on number of configured
pages default
fals
e. */
UNIV_INTERN
my_bool
srv_stats_sample_traditional
=
FALS
E
;
pages default
tru
e. */
UNIV_INTERN
my_bool
srv_stats_sample_traditional
=
TRU
E
;
UNIV_INTERN
ibool
srv_use_doublewrite_buf
=
TRUE
;
...
...
storage/innobase/sync/sync0sync.cc
View file @
ffc0ef63
...
...
@@ -551,6 +551,11 @@ mutex_spin_wait(
mutex_set_waiters
(
mutex
,
1
);
/* Make sure waiters store won't pass over mutex_test_and_set */
#ifdef __powerpc__
os_mb
;
#endif
/* Try to reserve still a few times */
for
(
i
=
0
;
i
<
4
;
i
++
)
{
if
(
ib_mutex_test_and_set
(
mutex
)
==
0
)
{
...
...
storage/xtradb/handler/ha_innodb.cc
View file @
ffc0ef63
...
...
@@ -17462,8 +17462,8 @@ static MYSQL_SYSVAR_ULONGLONG(stats_modified_counter, srv_stats_modified_counter
static
MYSQL_SYSVAR_BOOL
(
stats_traditional
,
srv_stats_sample_traditional
,
PLUGIN_VAR_RQCMDARG
,
"Enable traditional statistic calculation based on number of configured pages (default
fals
e)"
,
NULL
,
NULL
,
FALS
E
);
"Enable traditional statistic calculation based on number of configured pages (default
tru
e)"
,
NULL
,
NULL
,
TRU
E
);
static
MYSQL_SYSVAR_BOOL
(
adaptive_hash_index
,
btr_search_enabled
,
PLUGIN_VAR_OPCMDARG
,
...
...
storage/xtradb/srv/srv0srv.cc
View file @
ffc0ef63
...
...
@@ -462,8 +462,8 @@ UNIV_INTERN my_bool srv_stats_auto_recalc = TRUE;
UNIV_INTERN
unsigned
long
long
srv_stats_modified_counter
=
0
;
/* Enable traditional statistic calculation based on number of configured
pages default
fals
e. */
UNIV_INTERN
my_bool
srv_stats_sample_traditional
=
FALS
E
;
pages default
tru
e. */
UNIV_INTERN
my_bool
srv_stats_sample_traditional
=
TRU
E
;
UNIV_INTERN
ibool
srv_use_doublewrite_buf
=
TRUE
;
UNIV_INTERN
ibool
srv_use_atomic_writes
=
FALSE
;
...
...
storage/xtradb/sync/sync0sync.cc
View file @
ffc0ef63
...
...
@@ -649,6 +649,11 @@ mutex_spin_wait(
mutex_set_waiters
(
mutex
,
1
);
}
/* Make sure waiters store won't pass over mutex_test_and_set */
#ifdef __powerpc__
os_mb
;
#endif
/* Try to reserve still a few times */
for
(
i
=
0
;
i
<
4
;
i
++
)
{
if
(
ib_mutex_test_and_set
(
mutex
)
==
0
)
{
...
...
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