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
50c10a18
Commit
50c10a18
authored
Jan 07, 2009
by
Mattias Jonsson
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
f1731568
dc9c5440
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
sql/ha_partition.cc
sql/ha_partition.cc
+3
-3
No files found.
sql/ha_partition.cc
View file @
50c10a18
...
@@ -4815,7 +4815,7 @@ int ha_partition::info(uint flag)
...
@@ -4815,7 +4815,7 @@ int ha_partition::info(uint flag)
/*
/*
Calculates statistical variables
Calculates statistical variables
records: Estimate of number records in table
records: Estimate of number records in table
We report sum (always at least 2)
We report sum (always at least 2
if not empty
)
deleted: Estimate of number holes in the table due to
deleted: Estimate of number holes in the table due to
deletes
deletes
We report sum
We report sum
...
@@ -4854,13 +4854,13 @@ int ha_partition::info(uint flag)
...
@@ -4854,13 +4854,13 @@ int ha_partition::info(uint flag)
stats
.
check_time
=
file
->
stats
.
check_time
;
stats
.
check_time
=
file
->
stats
.
check_time
;
}
}
}
while
(
*
(
++
file_array
));
}
while
(
*
(
++
file_array
));
if
(
stats
.
records
<
2
&&
if
(
stats
.
records
&&
stats
.
records
<
2
&&
!
(
m_file
[
0
]
->
ha_table_flags
()
&
HA_STATS_RECORDS_IS_EXACT
))
!
(
m_file
[
0
]
->
ha_table_flags
()
&
HA_STATS_RECORDS_IS_EXACT
))
stats
.
records
=
2
;
stats
.
records
=
2
;
if
(
stats
.
records
>
0
)
if
(
stats
.
records
>
0
)
stats
.
mean_rec_length
=
(
ulong
)
(
stats
.
data_file_length
/
stats
.
records
);
stats
.
mean_rec_length
=
(
ulong
)
(
stats
.
data_file_length
/
stats
.
records
);
else
else
stats
.
mean_rec_length
=
1
;
//? What should we set here
stats
.
mean_rec_length
=
0
;
}
}
if
(
flag
&
HA_STATUS_CONST
)
if
(
flag
&
HA_STATUS_CONST
)
{
{
...
...
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