Below is the list of changes that have just been committed into a local
5.0 repository of stewart. When stewart 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
1.1977 05/12/06 13:09:24 stewart@stripped +1 -0
WL#2868 Fix backup trigger handling
fix testBackup test so that it will run successfully with the (now correct)
backup trigger code.
ndb/test/ndbapi/testBackup.cpp
1.14 05/12/06 13:09:20 stewart@stripped +7 -6
Don't do initial restart, just a restart. This is to avoid cache issues with
schema versions
# 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: stewart
# Host: willster.(none)
# Root: /home/stewart/Documents/MySQL/5.0/wl2868
--- 1.13/ndb/test/ndbapi/testBackup.cpp 2005-10-17 08:29:54 +02:00
+++ 1.14/ndb/test/ndbapi/testBackup.cpp 2005-12-06 13:09:20 +01:00
@@ -193,7 +193,7 @@
}
-int runRestartInitial(NDBT_Context* ctx, NDBT_Step* step){
+int runDropTablesRestart(NDBT_Context* ctx, NDBT_Step* step){
NdbRestarter restarter;
Ndb* pNdb = GETNDB(step);
@@ -201,7 +201,7 @@
const NdbDictionary::Table *tab = ctx->getTab();
pNdb->getDictionary()->dropTable(tab->getName());
- if (restarter.restartAll(true) != 0)
+ if (restarter.restartAll(false) != 0)
return NDBT_FAILED;
if (restarter.waitClusterStarted() != 0)
@@ -406,6 +406,7 @@
// TEMPORARY FIX
// To erase all tables from cache(s)
// To be removed, maybe replaced by ndb.invalidate();
+ runDropTable(ctx,step);
{
Bank bank(ctx->m_cluster_connection);
@@ -416,8 +417,8 @@
}
// END TEMPORARY FIX
- ndbout << "Performing initial restart" << endl;
- if (restarter.restartAll(true) != 0)
+ ndbout << "Performing restart" << endl;
+ if (restarter.restartAll(false) != 0)
return NDBT_FAILED;
if (restarter.waitClusterStarted() != 0)
@@ -465,12 +466,12 @@
"Test that backup and restore works on one table \n"
"1. Load table\n"
"2. Backup\n"
- "3. Restart -i\n"
+ "3. Drop tables and restart \n"
"4. Restore\n"
"5. Verify count and content of table\n"){
INITIALIZER(runLoadTable);
INITIALIZER(runBackupOne);
- INITIALIZER(runRestartInitial);
+ INITIALIZER(runDropTablesRestart);
INITIALIZER(runRestoreOne);
VERIFIER(runVerifyOne);
FINALIZER(runClearTable);
| Thread |
|---|
| • bk commit into 5.0 tree (stewart:1.1977) | Stewart Smith | 6 Dec |