diff options
author | unknown <sasha@mysql.sashanet.com> | 2001-01-17 05:47:33 -0700 |
---|---|---|
committer | unknown <sasha@mysql.sashanet.com> | 2001-01-17 05:47:33 -0700 |
commit | 4ac091636b0f366282a8a1c2ad2ff448a5c4a6f8 (patch) | |
tree | 6d77ea3fb9cae4b29069ce7d9ad832a29cd4e0b3 /client/mysql.cc | |
parent | 22f568dc0d8e27442b1c0b2c5a0b6bf35c88401c (diff) | |
download | mariadb-git-4ac091636b0f366282a8a1c2ad2ff448a5c4a6f8.tar.gz |
rpl000016.test sync
rpl000001.result BitKeeper file /home/sasha/src/bk/mysql/mysql-test/r/rpl000001.result
ignore Added BitKeeper/tmp/bkr3sAHD to the ignore list
slave.h MASTER_POS_WAIT
lex.h MASTER_POS_WAIT
slave.cc MASTER_POS_WAIT, do automagic restart on debugging abort, skip rotate events in
slave.cc debug abort count
sql_repl.cc announce the log name at the start of the log with a fake rotate event
item_create.h MASTER_POS_WAIT
item_func.cc MASTER_POS_WAIT
item_func.h MASTER_POS_WAIT
sql_class.h enter_cond(), exit_cond() helper inliners
item_create.cc added MASTER_POS_WAIT
mysql-test-run.sh speed improvement fixes
rpl000007.test sync
rpl000003.test sleep -> sync
rpl000004.test sleep -> sync, fixed clean up bug
rpl000014.test sync
rpl000009.test sync
rpl000013.test sync
rpl000001.test sleep -> sync
rpl000008.test sync
rpl000006.test sync on cleanup
rpl000011.test sync
rpl000012.test sync
rpl000005.test sleep -> sync
rpl000010.test sync
rpl000015.test sync
rpl000002.test sleep -> sync
rpl000014.result we now know the master log name as soon as we connect
mysql.cc added optional agrument to --wait
mysqltest.c added save_master_pos and sync_with_master commands
client/mysql.cc:
added optional agrument to --wait
client/mysqltest.c:
added save_master_pos and sync_with_master commands
mysql-test/mysql-test-run.sh:
speed improvement fixes
mysql-test/r/rpl000014.result:
we now know the master log name as soon as we connect
mysql-test/t/rpl000001.test:
sleep -> sync
mysql-test/t/rpl000002.test:
sleep -> sync
mysql-test/t/rpl000003.test:
sleep -> sync
mysql-test/t/rpl000004.test:
sleep -> sync, fixed clean up bug
mysql-test/t/rpl000005.test:
sleep -> sync
mysql-test/t/rpl000006.test:
sync on cleanup
mysql-test/t/rpl000007.test:
sync
mysql-test/t/rpl000008.test:
sync
mysql-test/t/rpl000009.test:
sync
mysql-test/t/rpl000010.test:
sync
mysql-test/t/rpl000011.test:
sync
mysql-test/t/rpl000012.test:
sync
mysql-test/t/rpl000013.test:
sync
mysql-test/t/rpl000014.test:
sync
mysql-test/t/rpl000015.test:
sync
BitKeeper/etc/ignore:
Added BitKeeper/tmp/bkr3sAHD to the ignore list
mysql-test/t/rpl000016.test:
sync
sql/item_create.cc:
added MASTER_POS_WAIT
sql/item_create.h:
MASTER_POS_WAIT
sql/item_func.cc:
MASTER_POS_WAIT
sql/item_func.h:
MASTER_POS_WAIT
sql/lex.h:
MASTER_POS_WAIT
sql/slave.cc:
MASTER_POS_WAIT, do automagic restart on debugging abort, skip rotate events in
debug abort count
sql/slave.h:
MASTER_POS_WAIT
sql/sql_class.h:
enter_cond(), exit_cond() helper inliners
sql/sql_repl.cc:
announce the log name at the start of the log with a fake rotate event
Diffstat (limited to 'client/mysql.cc')
-rw-r--r-- | client/mysql.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/client/mysql.cc b/client/mysql.cc index edc2f7903df..695d11d039c 100644 --- a/client/mysql.cc +++ b/client/mysql.cc @@ -125,6 +125,7 @@ static char *current_host,*current_db,*current_user=0,*opt_password=0, *default_charset; static char *histfile; static String glob_buffer,old_buffer; +static int wait_time = 5; static STATUS status; static ulong select_limit,max_join_size,opt_connect_timeout=0; static char default_pager[FN_REFLEN]; @@ -427,7 +428,7 @@ static struct option long_options[] = {"verbose", no_argument, 0, 'v'}, {"version", no_argument, 0, 'V'}, {"vertical", no_argument, 0, 'E'}, - {"wait", no_argument, 0, 'w'}, + {"wait", optional_argument, 0, 'w'}, {0, 0, 0, 0} }; @@ -560,7 +561,7 @@ static int get_options(int argc, char **argv) set_all_changeable_vars(changeable_vars); while ((c=getopt_long(argc,argv, - "?ABCD:LfgGHinNoqrstTU::vVwWEe:h:O:P:S:u:#::p::", + "?ABCD:LfgGHinNoqrstTU::vVw::WEe:h:O:P:S:u:#::p::", long_options, &option_index)) != EOF) { switch(c) { @@ -664,7 +665,10 @@ static int get_options(int argc, char **argv) case 'n': unbuffered=1; break; case 'v': verbose++; break; case 'E': vertical=1; break; - case 'w': wait_flag=1; break; + case 'w': + wait_flag=1; + if(optarg) wait_time = atoi(optarg) ; + break; case 'A': no_rehash=1; break; case 'G': no_named_cmds=0; break; case 'g': no_named_cmds=1; break; @@ -2114,7 +2118,7 @@ sql_connect(char *host,char *database,char *user,char *password,uint silent) message=1; tee_fputs("Waiting",stderr); (void) fflush(stderr); } - (void) sleep(5); + (void) sleep(wait_time); if (!silent) { putc('.',stderr); (void) fflush(stderr); |