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
b747b6b9
Commit
b747b6b9
authored
Jun 30, 2007
by
istruewing@synthia.local
Browse files
Options
Browse Files
Download
Plain Diff
Merge synthia.local:/home/mydev/mysql-5.1-ateam
into synthia.local:/home/mydev/mysql-5.1-axmrg
parents
baeaeac8
6edc4dcc
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
18 deletions
+21
-18
mysql-test/r/archive.result
mysql-test/r/archive.result
+7
-0
mysql-test/t/archive.test
mysql-test/t/archive.test
+9
-0
sql/ha_partition.cc
sql/ha_partition.cc
+2
-1
storage/archive/ha_archive.cc
storage/archive/ha_archive.cc
+3
-17
No files found.
mysql-test/r/archive.result
View file @
b747b6b9
...
@@ -12675,3 +12675,10 @@ select * from t1;
...
@@ -12675,3 +12675,10 @@ select * from t1;
i
i
1
1
drop table t1;
drop table t1;
create table t1(a longblob) engine=archive;
insert into t1 set a='';
insert into t1 set a='a';
check table t1 extended;
Table Op Msg_type Msg_text
test.t1 check status OK
drop table t1;
mysql-test/t/archive.test
View file @
b747b6b9
...
@@ -1550,3 +1550,12 @@ insert into t1 values (1);
...
@@ -1550,3 +1550,12 @@ insert into t1 values (1);
repair
table
t1
use_frm
;
repair
table
t1
use_frm
;
select
*
from
t1
;
select
*
from
t1
;
drop
table
t1
;
drop
table
t1
;
#
# BUG#29207 - archive table reported as corrupt by check table
#
create
table
t1
(
a
longblob
)
engine
=
archive
;
insert
into
t1
set
a
=
''
;
insert
into
t1
set
a
=
'a'
;
check
table
t1
extended
;
drop
table
t1
;
sql/ha_partition.cc
View file @
b747b6b9
...
@@ -3117,7 +3117,7 @@ int ha_partition::rnd_next(uchar *buf)
...
@@ -3117,7 +3117,7 @@ int ha_partition::rnd_next(uchar *buf)
continue
;
// Probably MyISAM
continue
;
// Probably MyISAM
if
(
result
!=
HA_ERR_END_OF_FILE
)
if
(
result
!=
HA_ERR_END_OF_FILE
)
break
;
// Return error
goto
end_dont_reset_start_part
;
// Return error
/* End current partition */
/* End current partition */
late_extra_no_cache
(
part_id
);
late_extra_no_cache
(
part_id
);
...
@@ -3143,6 +3143,7 @@ int ha_partition::rnd_next(uchar *buf)
...
@@ -3143,6 +3143,7 @@ int ha_partition::rnd_next(uchar *buf)
end:
end:
m_part_spec
.
start_part
=
NO_CURRENT_PART_ID
;
m_part_spec
.
start_part
=
NO_CURRENT_PART_ID
;
end_dont_reset_start_part:
table
->
status
=
STATUS_NOT_FOUND
;
table
->
status
=
STATUS_NOT_FOUND
;
DBUG_RETURN
(
result
);
DBUG_RETURN
(
result
);
}
}
...
...
storage/archive/ha_archive.cc
View file @
b747b6b9
...
@@ -1548,7 +1548,6 @@ bool ha_archive::is_crashed() const
...
@@ -1548,7 +1548,6 @@ bool ha_archive::is_crashed() const
int
ha_archive
::
check
(
THD
*
thd
,
HA_CHECK_OPT
*
check_opt
)
int
ha_archive
::
check
(
THD
*
thd
,
HA_CHECK_OPT
*
check_opt
)
{
{
int
rc
=
0
;
int
rc
=
0
;
uchar
*
buf
;
const
char
*
old_proc_info
;
const
char
*
old_proc_info
;
ha_rows
count
=
share
->
rows_recorded
;
ha_rows
count
=
share
->
rows_recorded
;
DBUG_ENTER
(
"ha_archive::check"
);
DBUG_ENTER
(
"ha_archive::check"
);
...
@@ -1557,28 +1556,15 @@ int ha_archive::check(THD* thd, HA_CHECK_OPT* check_opt)
...
@@ -1557,28 +1556,15 @@ int ha_archive::check(THD* thd, HA_CHECK_OPT* check_opt)
/* Flush any waiting data */
/* Flush any waiting data */
azflush
(
&
(
share
->
archive_write
),
Z_SYNC_FLUSH
);
azflush
(
&
(
share
->
archive_write
),
Z_SYNC_FLUSH
);
/*
First we create a buffer that we can use for reading rows, and can pass
to get_row().
*/
if
(
!
(
buf
=
(
uchar
*
)
my_malloc
(
table
->
s
->
reclength
,
MYF
(
MY_WME
))))
rc
=
HA_ERR_OUT_OF_MEM
;
/*
/*
Now we will rewind the archive file so that we are positioned at the
Now we will rewind the archive file so that we are positioned at the
start of the file.
start of the file.
*/
*/
init_archive_reader
();
init_archive_reader
();
if
(
!
rc
)
read_data_header
(
&
archive
);
read_data_header
(
&
archive
);
while
(
!
(
rc
=
get_row
(
&
archive
,
table
->
record
[
0
])))
if
(
!
rc
)
while
(
!
(
rc
=
get_row
(
&
archive
,
buf
)))
count
--
;
count
--
;
my_free
((
char
*
)
buf
,
MYF
(
0
));
thd_proc_info
(
thd
,
old_proc_info
);
thd_proc_info
(
thd
,
old_proc_info
);
if
((
rc
&&
rc
!=
HA_ERR_END_OF_FILE
)
||
count
)
if
((
rc
&&
rc
!=
HA_ERR_END_OF_FILE
)
||
count
)
...
...
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