Commit 9fd0eb70 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

start debugging the loader-dup-test leaks refs[t:2594]

git-svn-id: file:///svn/toku/tokudb@20063 c7de825b-a66e-492c-adef-691d508d4ae1
parent f87f471b
...@@ -344,16 +344,16 @@ static void do_args(int argc, char * const argv[]) { ...@@ -344,16 +344,16 @@ static void do_args(int argc, char * const argv[]) {
char *cmd = argv[0]; char *cmd = argv[0];
argc--; argv++; argc--; argv++;
while (argc>0) { while (argc>0) {
if (strcmp(argv[0], "-v")==0) { if (strcmp(argv[0], "-h")==0) {
resultcode=0;
do_usage:
fprintf(stderr, "Usage: %s -h -c -d %d -r %d\n", cmd, NUM_DBS, NUM_ROWS);
exit(resultcode);
} else if (strcmp(argv[0], "-v")==0) {
verbose++; verbose++;
} else if (strcmp(argv[0],"-q")==0) { } else if (strcmp(argv[0],"-q")==0) {
verbose--; verbose--;
if (verbose<0) verbose=0; if (verbose<0) verbose=0;
} else if (strcmp(argv[0], "-h")==0) {
resultcode=0;
do_usage:
fprintf(stderr, "Usage: -h -c -d <num_dbs> -r <num_rows>\n%s\n", cmd);
exit(resultcode);
} else if (strcmp(argv[0], "-d")==0) { } else if (strcmp(argv[0], "-d")==0) {
argc--; argv++; argc--; argv++;
NUM_DBS = atoi(argv[0]); NUM_DBS = atoi(argv[0]);
...@@ -362,11 +362,6 @@ static void do_args(int argc, char * const argv[]) { ...@@ -362,11 +362,6 @@ static void do_args(int argc, char * const argv[]) {
resultcode=1; resultcode=1;
goto do_usage; goto do_usage;
} }
} else if (strcmp(argv[0], "-v")==0) {
verbose++;
} else if (strcmp(argv[0],"-q")==0) {
verbose--;
if (verbose<0) verbose=0;
} else if (strcmp(argv[0], "-r")==0) { } else if (strcmp(argv[0], "-r")==0) {
argc--; argv++; argc--; argv++;
NUM_ROWS = atoi(argv[0]); NUM_ROWS = atoi(argv[0]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment