Below is the list of changes that have just been committed into a local
4.1 repository of dli. When dli 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, 2006-09-20 09:48:06+08:00, dli@stripped +3 -0
fix for bug#19651, if temporary error occured while retoring, report it in the restore
result.
ndb/tools/restore/consumer_restore.cpp@stripped, 2006-09-20 09:48:05+08:00,
dli@stripped +1 -0
record when temporary error occured in restore.
ndb/tools/restore/consumer_restore.hpp@stripped, 2006-09-20 09:48:05+08:00,
dli@stripped +2 -0
added a member to record temporary error in restore.
ndb/tools/restore/restore_main.cpp@stripped, 2006-09-20 09:48:05+08:00,
dli@stripped +11 -0
report temporary error in restore.
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: dli
# Host: dev3-76.dev.cn.tlan
# Root: /home/dli/mysql/mysql-4.1/mysql-4.1-bug-19651
--- 1.28/ndb/tools/restore/restore_main.cpp 2006-09-20 09:48:13 +08:00
+++ 1.29/ndb/tools/restore/restore_main.cpp 2006-09-20 09:48:13 +08:00
@@ -411,6 +411,17 @@
}
}
}
+ for(Uint32 i= 0; i < g_consumers.size(); i++)
+ {
+ if (((BackupRestore *)g_consumers[i])->m_temp_error)
+ {
+ clearConsumers();
+ ndbout_c("\nRestore successful, but encountered temporary error, "
+ "please look at configuration.");
+ return NDBT_ProgramExit(NDBT_TEMPORARY);
+ }
+ }
+
clearConsumers();
return NDBT_ProgramExit(NDBT_OK);
} // main
--- 1.13/ndb/tools/restore/consumer_restore.cpp 2006-09-20 09:48:13 +08:00
+++ 1.14/ndb/tools/restore/consumer_restore.cpp 2006-09-20 09:48:13 +08:00
@@ -437,6 +437,7 @@
case NdbError::TemporaryError:
err << "Temporary error: " << error << endl;
+ m_temp_error = true;
NdbSleep_MilliSleep(sleepTime);
return true;
// RETRY
--- 1.7/ndb/tools/restore/consumer_restore.hpp 2006-09-20 09:48:13 +08:00
+++ 1.8/ndb/tools/restore/consumer_restore.hpp 2006-09-20 09:48:13 +08:00
@@ -41,6 +41,7 @@
m_parallelism = parallelism;
m_callback = 0;
m_free_callback = 0;
+ m_temp_error = false;
m_transactions = 0;
m_cache.m_old_table = 0;
}
@@ -72,6 +73,7 @@
restore_callback_t *m_callback;
restore_callback_t *m_free_callback;
+ bool m_temp_error;
/**
* m_new_table_ids[X] = Y;
| Thread |
|---|
| • bk commit into 4.1 tree (dli:1.2534) BUG#19651 | David Li | 20 Sep |