File tree Expand file tree Collapse file tree 2 files changed +22
-16
lines changed Expand file tree Collapse file tree 2 files changed +22
-16
lines changed Original file line number Diff line number Diff line change @@ -4406,27 +4406,12 @@ Backup::execLIST_TABLES_CONF(Signal* signal)
44064406 }// if
44074407 tabPtr.p ->tableType = tableType;
44084408 tabPtr.p ->tableId = tableId;
4409- }// for
4410- }
4411- {
4412- TablePtr tabPtr;
4413- jam ();
4414- for (ptr.p ->tables .first (tabPtr);
4415- tabPtr.i !=RNIL;
4416- ptr.p ->tables .next (tabPtr))
4417- {
4418- /* *
4419- * Insert into table map after completing loop to avoid
4420- * complex error handling.
4421- */
4422- jamLine (tabPtr.p ->tableId );
44234409#ifdef VM_TRACE
44244410 TablePtr locTabPtr;
44254411 ndbassert (findTable (ptr, locTabPtr, tabPtr.p ->tableId ) == false );
44264412#endif
44274413 insertTableMap (tabPtr, ptr.i , tabPtr.p ->tableId );
4428- }
4429- jam ();
4414+ }// for
44304415 }
44314416
44324417 releaseSections (handle);
Original file line number Diff line number Diff line change 2828#include < random.h>
2929#include < NdbAutoPtr.hpp>
3030#include < NdbMixRestarter.hpp>
31+ #include < NdbBackup.hpp>
3132#include < NdbSqlUtil.hpp>
3233#include < NdbEnv.h>
3334#include < ndb_rand.h>
@@ -1056,6 +1057,19 @@ runDropTakeoverTest(NDBT_Context* ctx, NDBT_Step* step)
10561057 return NDBT_OK;
10571058}
10581059
1060+ int
1061+ runBackup (NDBT_Context* ctx, NDBT_Step* step)
1062+ {
1063+ NdbBackup backup;
1064+ Uint32 backupId = 0 ;
1065+ backup.clearOldBackups ();
1066+ if (backup.start (backupId) == -1 )
1067+ {
1068+ return NDBT_FAILED;
1069+ }
1070+ return NDBT_OK;
1071+ }
1072+
10591073int
10601074runCreateMaxTables (NDBT_Context* ctx, NDBT_Step* step)
10611075{
@@ -11457,6 +11471,13 @@ TESTCASE("CreateMaxTables",
1145711471 INITIALIZER (runCreateMaxTables);
1145811472 INITIALIZER (runDropMaxTables);
1145911473}
11474+ TESTCASE (" BackupMaxTables" ,
11475+ " Create max amount of tables and verify backup works\n " ){
11476+ TC_PROPERTY (" tables" , 200 );
11477+ INITIALIZER (runCreateMaxTables);
11478+ INITIALIZER (runBackup);
11479+ INITIALIZER (runDropMaxTables);
11480+ }
1146011481TESTCASE (" PkSizes" ,
1146111482 " Create tables with all different primary key sizes.\n " \
1146211483 " Test all data operations insert, update, delete etc.\n " \
You can’t perform that action at this time.
0 commit comments