Permalink
Browse files

Added optimize to the importer too

  • Loading branch information...
1 parent a7f82c5 commit 6aa9d36fa8b18f0f8e1c85760e16ab90fb56002b @Beirdo committed Jun 5, 2010
Showing with 8 additions and 1 deletion.
  1. +7 −1 bot/src/import.c
  2. +1 −0 bot/src/main.c
View
8 bot/src/import.c
@@ -62,6 +62,7 @@ bool Daemon = FALSE;
bool Debug = FALSE;
bool GlobalAbort = FALSE;
bool BotDone = FALSE;
+bool optimize = FALSE;
pthread_t mainThreadId;
BalancedBTree_t *versionTree;
char *pthreadsVersion = NULL;
@@ -184,6 +185,7 @@ void MainParseArgs( int argc, char **argv )
{"password", 1, 0, 'p'},
{"port", 1, 0, 'P'},
{"database", 1, 0, 'd'},
+ {"optimize", 0, 0, 'o'},
{0, 0, 0, 0}
};
@@ -192,8 +194,9 @@ void MainParseArgs( int argc, char **argv )
mysql_user = NULL;
mysql_password = NULL;
mysql_db = NULL;
+ optimize = false;
- while( (opt = getopt_long( argc, argv, "hVH:P:u:p:d:", longOpts,
+ while( (opt = getopt_long( argc, argv, "hVH:P:u:p:d:o", longOpts,
&optIndex )) != -1 )
{
switch( opt )
@@ -212,6 +215,9 @@ void MainParseArgs( int argc, char **argv )
case 'P':
mysql_portnum = atoi(optarg);
break;
+ case 'o':
+ optimize = true;
+ break;
case 'u':
if( mysql_user != NULL )
{
View
1 bot/src/main.c
@@ -299,6 +299,7 @@ void MainParseArgs( int argc, char **argv )
{"database", 1, 0, 'd'},
{"daemon", 0, 0, 'D'},
{"verbose", 0, 0, 'v'},
+ {"optimize", 0, 0, 'o'},
{"debug", 0, 0, 'g'},
{0, 0, 0, 0}
};

0 comments on commit 6aa9d36

Please sign in to comment.