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
14a5f5dd
Commit
14a5f5dd
authored
Dec 16, 2004
by
brian@avenger.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up from code review.
parent
3cf8548c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
13 deletions
+4
-13
sql/examples/ha_archive.cc
sql/examples/ha_archive.cc
+4
-13
No files found.
sql/examples/ha_archive.cc
View file @
14a5f5dd
...
@@ -799,7 +799,7 @@ int ha_archive::optimize(THD* thd, HA_CHECK_OPT* check_opt)
...
@@ -799,7 +799,7 @@ int ha_archive::optimize(THD* thd, HA_CHECK_OPT* check_opt)
char
block
[
IO_SIZE
];
char
block
[
IO_SIZE
];
char
writer_filename
[
FN_REFLEN
];
char
writer_filename
[
FN_REFLEN
];
/* Closing will cause all data waiting to be flushed
, to be flushed
*/
/* Closing will cause all data waiting to be flushed */
gzclose
(
share
->
archive_write
);
gzclose
(
share
->
archive_write
);
share
->
archive_write
=
NULL
;
share
->
archive_write
=
NULL
;
...
@@ -889,24 +889,15 @@ void ha_archive::info(uint flag)
...
@@ -889,24 +889,15 @@ void ha_archive::info(uint flag)
/* Costs quite a bit more to get all information */
/* Costs quite a bit more to get all information */
if
(
flag
&
HA_STATUS_TIME
)
if
(
flag
&
HA_STATUS_TIME
)
{
{
uint32
alloced_length_mean
=
0
;
uint
number_of_blobs
=
0
;
MY_STAT
file_stat
;
// Stat information for the data file
MY_STAT
file_stat
;
// Stat information for the data file
VOID
(
my_stat
(
share
->
data_file_name
,
&
file_stat
,
MYF
(
MY_WME
)));
VOID
(
my_stat
(
share
->
data_file_name
,
&
file_stat
,
MYF
(
MY_WME
)));
for
(
Field_blob
**
field
=
table
->
blob_field
;
*
field
;
field
++
)
mean_rec_length
=
table
->
reclength
+
buffer
.
alloced_length
();
number_of_blobs
++
;
data_file_length
=
file_stat
.
st_size
;
if
(
number_of_blobs
)
alloced_length_mean
=
buffer
.
alloced_length
()
/
number_of_blobs
;
mean_rec_length
=
table
->
reclength
+
alloced_length_mean
;
data_file_length
=
file_stat
.
st_size
;
// Its not worth calling stat to find out
create_time
=
file_stat
.
st_ctime
;
create_time
=
file_stat
.
st_ctime
;
update_time
=
file_stat
.
st_mtime
;
update_time
=
file_stat
.
st_mtime
;
max_data_file_length
=
share
->
rows_recorded
*
(
table
->
reclength
+
alloced_length_mean
)
;
max_data_file_length
=
share
->
rows_recorded
*
mean_rec_length
;
}
}
delete_length
=
0
;
delete_length
=
0
;
index_file_length
=
0
;
index_file_length
=
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