mirror of
https://github.com/MariaDB/server.git
synced 2025-08-31 22:22:30 +03:00
bug#11942
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