List:Commits« Previous MessageNext Message »
From:cbell Date:February 15 2008 8:45pm
Subject:bk commit into 6.0 tree (cbell:1.2570)
View as plain text  
Below is the list of changes that have just been committed into a local
6.0 repository of cbell.  When cbell does a push these changes
will be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2008-02-15 15:45:10-05:00, cbell@mysql_cab_desk. +3 -0
  Cset exclude: cbell/Chuck@mysql_cab_desk.|ChangeSet|20080215173326|65278

  mysql-test/r/backup_errors.result@stripped, 2008-02-15 15:44:59-05:00, cbell@mysql_cab_desk. +0 -0
    Exclude

  mysql-test/t/backup_errors.test@stripped, 2008-02-15 15:44:59-05:00, cbell@mysql_cab_desk. +0 -0
    Exclude

  sql/backup/backup_progress.cc@stripped, 2008-02-15 15:44:59-05:00, cbell@mysql_cab_desk. +0 -0
    Exclude

diff -Nrup a/mysql-test/r/backup_errors.result b/mysql-test/r/backup_errors.result
--- a/mysql-test/r/backup_errors.result	2008-02-15 12:33:18 -05:00
+++ b/mysql-test/r/backup_errors.result	2008-02-15 15:44:59 -05:00
@@ -75,9 +75,10 @@ backup_id
 DROP TABLE mysql.online_backup;
 Backup the database;
 BACKUP DATABASE test_ob_error TO 'ob_err.bak';
-ERROR HY000: Can't open the online backup progress tables. Check 'mysql.online_backup' and 'mysql.online_backup_progress'.
+ERROR 42S02: Table 'mysql.online_backup' doesn't exist
 SHOW ERRORS;
 Level	Code	Message
+Error	#	Table 'mysql.online_backup' doesn't exist
 Error	#	Can't open the online backup progress tables. Check 'mysql.online_backup' and 'mysql.online_backup_progress'.
 Restoring the table
 CREATE TABLE mysql.online_backup LIKE test.ob_copy;
@@ -85,9 +86,10 @@ DROP TABLE test.ob_copy;
 DROP TABLE mysql.online_backup_progress;
 Backup the database;
 BACKUP DATABASE test_ob_error TO 'ob_err.bak';
-ERROR HY000: Can't open the online backup progress tables. Check 'mysql.online_backup' and 'mysql.online_backup_progress'.
+ERROR 42S02: Table 'mysql.online_backup_progress' doesn't exist
 SHOW ERRORS;
 Level	Code	Message
+Error	#	Table 'mysql.online_backup_progress' doesn't exist
 Error	#	Can't open the online backup progress tables. Check 'mysql.online_backup' and 'mysql.online_backup_progress'.
 Restoring the table
 CREATE TABLE mysql.online_backup_progress LIKE test.obp_copy;
diff -Nrup a/mysql-test/t/backup_errors.test b/mysql-test/t/backup_errors.test
--- a/mysql-test/t/backup_errors.test	2008-02-15 12:33:19 -05:00
+++ b/mysql-test/t/backup_errors.test	2008-02-15 15:44:59 -05:00
@@ -179,7 +179,7 @@ DROP TABLE mysql.online_backup;
 
 # Try to backup the database (should be error).
 --echo Backup the database;
---error ER_BACKUP_PROGRESS_TABLES
+--error ER_NO_SUCH_TABLE
 BACKUP DATABASE test_ob_error TO 'ob_err.bak';
 --error 0,1
 --remove_file $MYSQLTEST_VARDIR/master-data/ob_err.bak
@@ -196,7 +196,7 @@ DROP TABLE mysql.online_backup_progress;
 
 # Try to backup the database (should be error).
 --echo Backup the database;
---error ER_BACKUP_PROGRESS_TABLES
+--error ER_NO_SUCH_TABLE
 BACKUP DATABASE test_ob_error TO 'ob_err.bak';
 --error 0,1
 --remove_file $MYSQLTEST_VARDIR/master-data/ob_err.bak
diff -Nrup a/sql/backup/backup_progress.cc b/sql/backup/backup_progress.cc
--- a/sql/backup/backup_progress.cc	2008-02-15 12:33:20 -05:00
+++ b/sql/backup/backup_progress.cc	2008-02-15 15:44:59 -05:00
@@ -27,8 +27,6 @@
 #include "backup_progress.h"
 #include "be_thread.h"
 
-extern bool check_if_table_exists(THD *thd, TABLE_LIST *table, bool *exists);
-
 /**
    Check online backup progress tables.
 
@@ -46,14 +44,12 @@ my_bool check_ob_progress_tables(THD *th
 {
   TABLE_LIST tables;
   my_bool ret= FALSE;
-  bool exists= FALSE;
 
   DBUG_ENTER("check_ob_progress_tables");
 
   /* Check mysql.online_backup */
   tables.init_one_table("mysql", "online_backup", TL_READ);
-  check_if_table_exists(thd, &tables, &exists);
-  if (!exists)
+  if (simple_open_n_lock_tables(thd, &tables))
   {
     ret= TRUE;
     sql_print_error(ER(ER_BACKUP_PROGRESS_TABLES));
@@ -63,8 +59,7 @@ my_bool check_ob_progress_tables(THD *th
 
   /* Check mysql.online_backup_progress */
   tables.init_one_table("mysql", "online_backup_progress", TL_READ);
-  check_if_table_exists(thd, &tables, &exists);
-  if (!exists)
+  if (simple_open_n_lock_tables(thd, &tables))
   {
     ret= TRUE;
     sql_print_error(ER(ER_BACKUP_PROGRESS_TABLES));

Thread
bk commit into 6.0 tree (cbell:1.2570)cbell15 Feb