summaryrefslogtreecommitdiff
path: root/sql/item_func.cc
diff options
context:
space:
mode:
authormonty@mashka.mysql.fi <>2003-01-25 15:07:51 +0200
committermonty@mashka.mysql.fi <>2003-01-25 15:07:51 +0200
commitfa7a94ed14f0bdd39b99abfca872444fdb5fff11 (patch)
treeec47c385448c97b6f07f4d2851b745236f7e98dd /sql/item_func.cc
parent9ec97f2c08fbc022d597e30e249ae403b467dc6b (diff)
downloadmariadb-git-fa7a94ed14f0bdd39b99abfca872444fdb5fff11.tar.gz
Added timeout for wait_for_master_pos
Fixed comparision of log-binary name to handle comparison when file name extension wraps from .999 to .1000 Don't replicate CREATE/DROP DATABASE if wild_xxx_table=database.% is used.
Diffstat (limited to 'sql/item_func.cc')
-rw-r--r--sql/item_func.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/item_func.cc b/sql/item_func.cc
index 20d7bffce21..78885038654 100644
--- a/sql/item_func.cc
+++ b/sql/item_func.cc
@@ -1549,9 +1549,10 @@ longlong Item_master_pos_wait::val_int()
null_value = 1;
return 0;
}
- ulong pos = (ulong)args[1]->val_int();
+ longlong pos = args[1]->val_int();
+ longlong timeout = (arg_count==3) ? args[2]->val_int() : 0 ;
LOCK_ACTIVE_MI;
- if ((event_count = active_mi->rli.wait_for_pos(thd, log_name, pos)) == -1)
+ if ((event_count = active_mi->rli.wait_for_pos(thd, log_name, pos, timeout)) == -2)
{
null_value = 1;
event_count=0;