mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
temporary commit to pull Monty's changes
include/my_global.h: added dbug_volatile mysys/mf_iocache2.c: some debugging code to investigate failed assert in my_b_append_tell() sql/item_func.cc: fixed logging bug in DO RELEASE_LOCK()
This commit is contained in:
@ -1418,16 +1418,19 @@ void item_user_lock_release(ULL *ull)
|
||||
if (mysql_bin_log.is_open())
|
||||
{
|
||||
THD *thd = current_thd;
|
||||
uint save_query_length;
|
||||
char buf[256];
|
||||
String tmp(buf,sizeof(buf));
|
||||
tmp.length(0);
|
||||
tmp.append("DO RELEASE_LOCK(\"");
|
||||
tmp.append(ull->key,ull->key_length);
|
||||
tmp.append("\")");
|
||||
save_query_length=thd->query_length;
|
||||
thd->query_length=tmp.length();
|
||||
Query_log_event qev(thd,tmp.ptr());
|
||||
qev.error_code=0; // this query is always safe to run on slave
|
||||
mysql_bin_log.write(&qev);
|
||||
thd->query_length=save_query_length;
|
||||
}
|
||||
if (--ull->count)
|
||||
pthread_cond_signal(&ull->cond);
|
||||
|
Reference in New Issue
Block a user