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
631b5ef0
Commit
631b5ef0
authored
Nov 11, 2010
by
Vasil Dimov
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql-5.1-innodb -> mysql-5.5-innodb
parents
7eff0335
f9c2f7cd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
45 deletions
+7
-45
storage/innobase/dict/dict0dict.c
storage/innobase/dict/dict0dict.c
+4
-25
storage/innobase/dict/dict0load.c
storage/innobase/dict/dict0load.c
+2
-5
storage/innobase/include/dict0dict.h
storage/innobase/include/dict0dict.h
+1
-15
No files found.
storage/innobase/dict/dict0dict.c
View file @
631b5ef0
...
@@ -4228,16 +4228,13 @@ Calculates new estimates for table and index statistics. The statistics
...
@@ -4228,16 +4228,13 @@ Calculates new estimates for table and index statistics. The statistics
are used in query optimization. */
are used in query optimization. */
UNIV_INTERN
UNIV_INTERN
void
void
dict_update_statistics
_low
(
dict_update_statistics
(
/*===================
====
*/
/*===================*/
dict_table_t
*
table
,
/*!< in/out: table */
dict_table_t
*
table
,
/*!< in/out: table */
ibool
only_calc_if_missing_stats
,
/*!< in: only
ibool
only_calc_if_missing_stats
)
/*!< in: only
update/recalc the stats if they have
update/recalc the stats if they have
not been initialized yet, otherwise
not been initialized yet, otherwise
do nothing */
do nothing */
ibool
has_dict_mutex
__attribute__
((
unused
)))
/*!< in: TRUE if the caller has the
dictionary mutex */
{
{
dict_index_t
*
index
;
dict_index_t
*
index
;
ulint
sum_of_index_sizes
=
0
;
ulint
sum_of_index_sizes
=
0
;
...
@@ -4331,22 +4328,6 @@ dict_update_statistics_low(
...
@@ -4331,22 +4328,6 @@ dict_update_statistics_low(
dict_table_stats_unlock
(
table
,
RW_X_LATCH
);
dict_table_stats_unlock
(
table
,
RW_X_LATCH
);
}
}
/*********************************************************************//**
Calculates new estimates for table and index statistics. The statistics
are used in query optimization. */
UNIV_INTERN
void
dict_update_statistics
(
/*===================*/
dict_table_t
*
table
,
/*!< in/out: table */
ibool
only_calc_if_missing_stats
)
/*!< in: only
update/recalc the stats if they have
not been initialized yet, otherwise
do nothing */
{
dict_update_statistics_low
(
table
,
only_calc_if_missing_stats
,
FALSE
);
}
/**********************************************************************//**
/**********************************************************************//**
Prints info of a foreign key constraint. */
Prints info of a foreign key constraint. */
static
static
...
@@ -4424,9 +4405,7 @@ dict_table_print_low(
...
@@ -4424,9 +4405,7 @@ dict_table_print_low(
ut_ad
(
mutex_own
(
&
(
dict_sys
->
mutex
)));
ut_ad
(
mutex_own
(
&
(
dict_sys
->
mutex
)));
dict_update_statistics_low
(
table
,
dict_update_statistics
(
table
,
FALSE
/* update even if initialized */
);
FALSE
/* update even if initialized */
,
TRUE
/* we have the dict mutex */
);
dict_table_stats_lock
(
table
,
RW_S_LATCH
);
dict_table_stats_lock
(
table
,
RW_S_LATCH
);
...
...
storage/innobase/dict/dict0load.c
View file @
631b5ef0
...
@@ -346,11 +346,8 @@ dict_process_sys_tables_rec(
...
@@ -346,11 +346,8 @@ dict_process_sys_tables_rec(
/* Update statistics if DICT_TABLE_UPDATE_STATS
/* Update statistics if DICT_TABLE_UPDATE_STATS
is set */
is set */
dict_update_statistics_low
(
*
table
,
dict_update_statistics
(
*
table
,
FALSE
/* update even if
FALSE
/* update even if
initialized */
);
initialized */
,
TRUE
/* we have the dict
mutex */
);
}
}
return
(
NULL
);
return
(
NULL
);
...
...
storage/innobase/include/dict0dict.h
View file @
631b5ef0
...
@@ -1081,23 +1081,9 @@ Calculates new estimates for table and index statistics. The statistics
...
@@ -1081,23 +1081,9 @@ Calculates new estimates for table and index statistics. The statistics
are used in query optimization. */
are used in query optimization. */
UNIV_INTERN
UNIV_INTERN
void
void
dict_update_statistics_low
(
/*=======================*/
dict_table_t
*
table
,
/*!< in/out: table */
ibool
only_calc_if_missing_stats
,
/*!< in: only
update/recalc the stats if they have
not been initialized yet, otherwise
do nothing */
ibool
has_dict_mutex
);
/*!< in: TRUE if the caller has the
dictionary mutex */
/*********************************************************************//**
Calculates new estimates for table and index statistics. The statistics
are used in query optimization. */
UNIV_INTERN
void
dict_update_statistics
(
dict_update_statistics
(
/*===================*/
/*===================*/
dict_table_t
*
table
,
/*!< in/out: table */
dict_table_t
*
table
,
/*!< in/out: table */
ibool
only_calc_if_missing_stats
);
/*!< in: only
ibool
only_calc_if_missing_stats
);
/*!< in: only
update/recalc the stats if they have
update/recalc the stats if they have
not been initialized yet, otherwise
not been initialized yet, otherwise
...
...
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