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
ff37912f
Commit
ff37912f
authored
Mar 18, 2009
by
Guangbao Ni
Browse files
Options
Browse Files
Download
Plain Diff
Auto-merged from 5.1-bugteam
parents
224376a7
1367981c
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
36 additions
and
4 deletions
+36
-4
mysql-test/r/archive.result
mysql-test/r/archive.result
+19
-0
mysql-test/std_data/bug32880.ARN
mysql-test/std_data/bug32880.ARN
+0
-0
mysql-test/std_data/bug32880.ARZ
mysql-test/std_data/bug32880.ARZ
+0
-0
mysql-test/std_data/bug32880.frm
mysql-test/std_data/bug32880.frm
+0
-0
mysql-test/t/archive.test
mysql-test/t/archive.test
+15
-0
storage/archive/ha_archive.cc
storage/archive/ha_archive.cc
+2
-4
No files found.
mysql-test/r/archive.result
View file @
ff37912f
...
@@ -12695,3 +12695,22 @@ a b
...
@@ -12695,3 +12695,22 @@ a b
1 NULL
1 NULL
2 NULL
2 NULL
DROP TABLE t1;
DROP TABLE t1;
#
# BUG#32880 - Repairing Archive table fails with internal error 144
#
# Test with an existing table which is corrupted
# Copy t1 from std_data
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL,
`b` blob
) ENGINE=ARCHIVE DEFAULT CHARSET=latin1
CHECK TABLE t1;
Table Op Msg_type Msg_text
test.t1 check error Corrupt
REPAIR TABLE t1;
Table Op Msg_type Msg_text
test.t1 repair error Corrupt
DROP TABLE t1;
mysql-test/std_data/bug32880.ARN
0 → 100644
View file @
ff37912f
File added
mysql-test/std_data/bug32880.ARZ
0 → 100644
View file @
ff37912f
File added
mysql-test/std_data/bug32880.frm
0 → 100644
View file @
ff37912f
File added
mysql-test/t/archive.test
View file @
ff37912f
...
@@ -1599,3 +1599,18 @@ INSERT INTO t1 VALUES (NULL, NULL),(NULL, NULL);
...
@@ -1599,3 +1599,18 @@ INSERT INTO t1 VALUES (NULL, NULL),(NULL, NULL);
FLUSH
TABLE
t1
;
FLUSH
TABLE
t1
;
SELECT
*
FROM
t1
ORDER
BY
a
;
SELECT
*
FROM
t1
ORDER
BY
a
;
DROP
TABLE
t1
;
DROP
TABLE
t1
;
--
echo
#
--
echo
# BUG#32880 - Repairing Archive table fails with internal error 144
--
echo
#
--
echo
--
echo
# Test with an existing table which is corrupted
--
echo
# Copy t1 from std_data
let
$MYSQLD_DATADIR
=
`select @@datadir`
;
copy_file
std_data
/
bug32880
.
frm
$MYSQLD_DATADIR
/
test
/
t1
.
frm
;
copy_file
std_data
/
bug32880
.
ARZ
$MYSQLD_DATADIR
/
test
/
t1
.
ARZ
;
copy_file
std_data
/
bug32880
.
ARN
$MYSQLD_DATADIR
/
test
/
t1
.
ARN
;
SHOW
CREATE
TABLE
t1
;
CHECK
TABLE
t1
;
REPAIR
TABLE
t1
;
DROP
TABLE
t1
;
storage/archive/ha_archive.cc
View file @
ff37912f
...
@@ -1076,11 +1076,9 @@ int ha_archive::unpack_row(azio_stream *file_to_read, uchar *record)
...
@@ -1076,11 +1076,9 @@ int ha_archive::unpack_row(azio_stream *file_to_read, uchar *record)
read
=
azread
(
file_to_read
,
record_buffer
->
buffer
,
row_len
,
&
error
);
read
=
azread
(
file_to_read
,
record_buffer
->
buffer
,
row_len
,
&
error
);
DBUG_ASSERT
(
row_len
==
read
);
if
(
read
!=
row_len
||
error
)
if
(
read
!=
row_len
||
error
)
{
{
DBUG_RETURN
(
-
1
);
DBUG_RETURN
(
HA_ERR_CRASHED_ON_USAGE
);
}
}
/* Copy null bits */
/* Copy null bits */
...
@@ -1257,7 +1255,7 @@ int ha_archive::repair(THD* thd, HA_CHECK_OPT* check_opt)
...
@@ -1257,7 +1255,7 @@ int ha_archive::repair(THD* thd, HA_CHECK_OPT* check_opt)
int
rc
=
optimize
(
thd
,
check_opt
);
int
rc
=
optimize
(
thd
,
check_opt
);
if
(
rc
)
if
(
rc
)
DBUG_RETURN
(
HA_
ERR_CRASHED_ON_REPAIR
);
DBUG_RETURN
(
HA_
ADMIN_CORRUPT
);
share
->
crashed
=
FALSE
;
share
->
crashed
=
FALSE
;
DBUG_RETURN
(
0
);
DBUG_RETURN
(
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