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
a6fedfc3
Commit
a6fedfc3
authored
Dec 17, 2001
by
heikki@donna.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ha_innobase.cc, dict0dict.c:
Cleanup
parent
e124882e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
innobase/dict/dict0dict.c
innobase/dict/dict0dict.c
+0
-2
sql/ha_innobase.cc
sql/ha_innobase.cc
+2
-2
No files found.
innobase/dict/dict0dict.c
View file @
a6fedfc3
...
...
@@ -2578,8 +2578,6 @@ dict_update_statistics_low(
ulint
size
;
ulint
sum_of_index_sizes
=
0
;
printf
(
"Updating statistics for table %s
\n
"
,
table
->
name
);
/* Find out the sizes of the indexes and how many different values
for the key they approximately have */
...
...
sql/ha_innobase.cc
View file @
a6fedfc3
...
...
@@ -3042,8 +3042,8 @@ ha_innobase::estimate_number_of_rows(void)
/* Calculate a minimum length for a clustered index record and from
that an upper bound for the number of rows. Since we only calculate
new statistics in row0mysql.c when a table
size has grown by 50 %
or
by a threshold factor, we must add a safety factor 2 in front
new statistics in row0mysql.c when a table
has grown
by a threshold factor, we must add a safety factor 2 in front
of the formula below. */
estimate
=
2
*
data_file_length
/
dict_index_calc_min_rec_len
(
index
);
...
...
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