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
c0fb3df0
Commit
c0fb3df0
authored
Feb 27, 2009
by
Staale Smedseng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Recommit for merging and pushing
parent
da7aa6bc
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
18 additions
and
13 deletions
+18
-13
mysql-test/r/preload.result
mysql-test/r/preload.result
+2
-2
mysql-test/r/ps.result
mysql-test/r/ps.result
+6
-6
mysql-test/r/repair.result
mysql-test/r/repair.result
+1
-1
mysql-test/r/rpl_failed_optimize.result
mysql-test/r/rpl_failed_optimize.result
+1
-1
mysql-test/suite/funcs_1/r/innodb_views.result
mysql-test/suite/funcs_1/r/innodb_views.result
+1
-1
mysql-test/suite/funcs_1/r/memory_views.result
mysql-test/suite/funcs_1/r/memory_views.result
+1
-1
sql/sql_table.cc
sql/sql_table.cc
+6
-1
No files found.
mysql-test/r/preload.result
View file @
c0fb3df0
...
@@ -144,7 +144,7 @@ Key_reads 0
...
@@ -144,7 +144,7 @@ Key_reads 0
load index into cache t3, t2 key (primary,b) ;
load index into cache t3, t2 key (primary,b) ;
Table Op Msg_type Msg_text
Table Op Msg_type Msg_text
test.t3 preload_keys Error Table 'test.t3' doesn't exist
test.t3 preload_keys Error Table 'test.t3' doesn't exist
test.t3 preload_keys
error Corrupt
test.t3 preload_keys
status Operation failed
test.t2 preload_keys status OK
test.t2 preload_keys status OK
show status like "key_read%";
show status like "key_read%";
Variable_name Value
Variable_name Value
...
@@ -159,7 +159,7 @@ Key_reads 0
...
@@ -159,7 +159,7 @@ Key_reads 0
load index into cache t3 key (b), t2 key (c) ;
load index into cache t3 key (b), t2 key (c) ;
Table Op Msg_type Msg_text
Table Op Msg_type Msg_text
test.t3 preload_keys Error Table 'test.t3' doesn't exist
test.t3 preload_keys Error Table 'test.t3' doesn't exist
test.t3 preload_keys
error Corrupt
test.t3 preload_keys
status Operation failed
test.t2 preload_keys Error Key 'c' doesn't exist in table 't2'
test.t2 preload_keys Error Key 'c' doesn't exist in table 't2'
test.t2 preload_keys status Operation failed
test.t2 preload_keys status Operation failed
show status like "key_read%";
show status like "key_read%";
...
...
mysql-test/r/ps.result
View file @
c0fb3df0
...
@@ -1386,13 +1386,13 @@ execute stmt;
...
@@ -1386,13 +1386,13 @@ execute stmt;
Table Op Msg_type Msg_text
Table Op Msg_type Msg_text
test.t1 repair status OK
test.t1 repair status OK
test.t4 repair Error Table 'test.t4' doesn't exist
test.t4 repair Error Table 'test.t4' doesn't exist
test.t4 repair
error Corrupt
test.t4 repair
status Operation failed
test.t3 repair status OK
test.t3 repair status OK
execute stmt;
execute stmt;
Table Op Msg_type Msg_text
Table Op Msg_type Msg_text
test.t1 repair status OK
test.t1 repair status OK
test.t4 repair Error Table 'test.t4' doesn't exist
test.t4 repair Error Table 'test.t4' doesn't exist
test.t4 repair
error Corrupt
test.t4 repair
status Operation failed
test.t3 repair status OK
test.t3 repair status OK
prepare stmt from "optimize table t1, t3, t4";
prepare stmt from "optimize table t1, t3, t4";
execute stmt;
execute stmt;
...
@@ -1400,23 +1400,23 @@ Table Op Msg_type Msg_text
...
@@ -1400,23 +1400,23 @@ Table Op Msg_type Msg_text
test.t1 optimize status OK
test.t1 optimize status OK
test.t3 optimize status OK
test.t3 optimize status OK
test.t4 optimize Error Table 'test.t4' doesn't exist
test.t4 optimize Error Table 'test.t4' doesn't exist
test.t4 optimize
error Corrupt
test.t4 optimize
status Operation failed
execute stmt;
execute stmt;
Table Op Msg_type Msg_text
Table Op Msg_type Msg_text
test.t1 optimize status Table is already up to date
test.t1 optimize status Table is already up to date
test.t3 optimize status Table is already up to date
test.t3 optimize status Table is already up to date
test.t4 optimize Error Table 'test.t4' doesn't exist
test.t4 optimize Error Table 'test.t4' doesn't exist
test.t4 optimize
error Corrupt
test.t4 optimize
status Operation failed
prepare stmt from "analyze table t4, t1";
prepare stmt from "analyze table t4, t1";
execute stmt;
execute stmt;
Table Op Msg_type Msg_text
Table Op Msg_type Msg_text
test.t4 analyze Error Table 'test.t4' doesn't exist
test.t4 analyze Error Table 'test.t4' doesn't exist
test.t4 analyze
error Corrupt
test.t4 analyze
status Operation failed
test.t1 analyze status Table is already up to date
test.t1 analyze status Table is already up to date
execute stmt;
execute stmt;
Table Op Msg_type Msg_text
Table Op Msg_type Msg_text
test.t4 analyze Error Table 'test.t4' doesn't exist
test.t4 analyze Error Table 'test.t4' doesn't exist
test.t4 analyze
error Corrupt
test.t4 analyze
status Operation failed
test.t1 analyze status Table is already up to date
test.t1 analyze status Table is already up to date
deallocate prepare stmt;
deallocate prepare stmt;
drop table t1, t2, t3;
drop table t1, t2, t3;
...
...
mysql-test/r/repair.result
View file @
c0fb3df0
...
@@ -27,7 +27,7 @@ drop table t1;
...
@@ -27,7 +27,7 @@ drop table t1;
repair table t1 use_frm;
repair table t1 use_frm;
Table Op Msg_type Msg_text
Table Op Msg_type Msg_text
test.t1 repair Error Table 'test.t1' doesn't exist
test.t1 repair Error Table 'test.t1' doesn't exist
test.t1 repair
error Corrupt
test.t1 repair
status Operation failed
create table t1 engine=myisam SELECT 1,"table 1";
create table t1 engine=myisam SELECT 1,"table 1";
flush tables;
flush tables;
repair table t1;
repair table t1;
...
...
mysql-test/r/rpl_failed_optimize.result
View file @
c0fb3df0
...
@@ -16,5 +16,5 @@ Error 1205 Lock wait timeout exceeded; try restarting transaction
...
@@ -16,5 +16,5 @@ Error 1205 Lock wait timeout exceeded; try restarting transaction
OPTIMIZE TABLE non_existing;
OPTIMIZE TABLE non_existing;
Table Op Msg_type Msg_text
Table Op Msg_type Msg_text
test.non_existing optimize Error Table 'test.non_existing' doesn't exist
test.non_existing optimize Error Table 'test.non_existing' doesn't exist
test.non_existing optimize
error Corrupt
test.non_existing optimize
status Operation failed
drop table t1;
drop table t1;
mysql-test/suite/funcs_1/r/innodb_views.result
View file @
c0fb3df0
...
@@ -21367,7 +21367,7 @@ ERROR 42S02: Table 'test.v1' doesn't exist
...
@@ -21367,7 +21367,7 @@ ERROR 42S02: Table 'test.v1' doesn't exist
CHECK TABLE v1;
CHECK TABLE v1;
Table Op Msg_type Msg_text
Table Op Msg_type Msg_text
test.v1 check Error Table 'test.v1' doesn't exist
test.v1 check Error Table 'test.v1' doesn't exist
test.v1 check
error Corrupt
test.v1 check
status Operation failed
DESCRIBE v1;
DESCRIBE v1;
ERROR 42S02: Table 'test.v1' doesn't exist
ERROR 42S02: Table 'test.v1' doesn't exist
EXPLAIN SELECT * FROM v1;
EXPLAIN SELECT * FROM v1;
...
...
mysql-test/suite/funcs_1/r/memory_views.result
View file @
c0fb3df0
...
@@ -21368,7 +21368,7 @@ ERROR 42S02: Table 'test.v1' doesn't exist
...
@@ -21368,7 +21368,7 @@ ERROR 42S02: Table 'test.v1' doesn't exist
CHECK TABLE v1;
CHECK TABLE v1;
Table Op Msg_type Msg_text
Table Op Msg_type Msg_text
test.v1 check Error Table 'test.v1' doesn't exist
test.v1 check Error Table 'test.v1' doesn't exist
test.v1 check
error Corrupt
test.v1 check
status Operation failed
DESCRIBE v1;
DESCRIBE v1;
ERROR 42S02: Table 'test.v1' doesn't exist
ERROR 42S02: Table 'test.v1' doesn't exist
EXPLAIN SELECT * FROM v1;
EXPLAIN SELECT * FROM v1;
...
...
sql/sql_table.cc
View file @
c0fb3df0
...
@@ -2314,7 +2314,12 @@ static bool mysql_admin_table(THD* thd, TABLE_LIST* tables,
...
@@ -2314,7 +2314,12 @@ static bool mysql_admin_table(THD* thd, TABLE_LIST* tables,
view_checksum
(
thd
,
table
)
==
HA_ADMIN_WRONG_CHECKSUM
)
view_checksum
(
thd
,
table
)
==
HA_ADMIN_WRONG_CHECKSUM
)
push_warning
(
thd
,
MYSQL_ERROR
::
WARN_LEVEL_ERROR
,
push_warning
(
thd
,
MYSQL_ERROR
::
WARN_LEVEL_ERROR
,
ER_VIEW_CHECKSUM
,
ER
(
ER_VIEW_CHECKSUM
));
ER_VIEW_CHECKSUM
,
ER
(
ER_VIEW_CHECKSUM
));
result_code
=
HA_ADMIN_CORRUPT
;
if
(
thd
->
net
.
last_errno
==
ER_NO_SUCH_TABLE
)
/* A missing table is just issued as a failed command */
result_code
=
HA_ADMIN_FAILED
;
else
/* Default failure code is corrupt table */
result_code
=
HA_ADMIN_CORRUPT
;
goto
send_result
;
goto
send_result
;
}
}
...
...
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