mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
bug#11942
ndb/include/kernel/signaldata/AlterTable.hpp: Add error code for backup in progress ndb/include/kernel/signaldata/DictTabInfo.hpp: Add backup state ndb/include/kernel/signaldata/DropTable.hpp: Add error code for backup in progress ndb/include/ndbapi/NdbDictionary.hpp: Add backup state ndb/src/kernel/blocks/backup/Backup.cpp: 1) remove invalid require (util_sequence_ref) crash 2) Don't backup objects dropping/creating 3) set correct error code on backup fragment ref (crash) 4) save TrigAttrInfo header when getting log full (crash) 5) lock/unlock tables during backup ndb/src/kernel/blocks/dbdict/Dbdict.cpp: 1) add mutex lock/unlock as part of drop/alter table 2) add lock/unlock for backup 3) remove TC from backup trigger loop ndb/src/kernel/blocks/dbdict/Dbdict.hpp: Add BACKUP_ONGOING state ndb/src/ndbapi/NdbDictionaryImpl.cpp: Add backup state ndb/src/ndbapi/ndberror.c: Add error code for backup in progress ndb/test/ndbapi/testBackup.cpp: Add testcase for testBackup -n BackupDDL ndb/tools/drop_index.cpp: Fix ndb_drop_index ndb/tools/listTables.cpp: Print of backup state
This commit is contained in:
@ -35,7 +35,7 @@ static struct my_option my_long_options[] =
|
||||
static void usage()
|
||||
{
|
||||
char desc[] =
|
||||
"<indexname>+\n"\
|
||||
"[<table> <index>]+\n"\
|
||||
"This program will drop index(es) in Ndb\n";
|
||||
ndb_std_print_version();
|
||||
my_print_help(my_long_options);
|
||||
@ -73,10 +73,10 @@ int main(int argc, char** argv){
|
||||
ndbout << "Waiting for ndb to become ready..." << endl;
|
||||
|
||||
int res = 0;
|
||||
for(int i = 0; i<argc; i++){
|
||||
ndbout << "Dropping index " << argv[i] << "...";
|
||||
for(int i = 0; i+1<argc; i += 2){
|
||||
ndbout << "Dropping index " << argv[i] << "/" << argv[i+1] << "...";
|
||||
int tmp;
|
||||
if((tmp = MyNdb.getDictionary()->dropIndex(argv[i], 0)) != 0){
|
||||
if((tmp = MyNdb.getDictionary()->dropIndex(argv[i+1], argv[i])) != 0){
|
||||
ndbout << endl << MyNdb.getDictionary()->getNdbError() << endl;
|
||||
res = tmp;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user