diff options
author | unknown <andrey@lmy004.> | 2005-12-08 20:37:54 +0100 |
---|---|---|
committer | unknown <andrey@lmy004.> | 2005-12-08 20:37:54 +0100 |
commit | 1c5573a47c4ef43558770c1c4e536ba39114dcbb (patch) | |
tree | e3a59d8ec82ccbd4b504f89e010b7dbe742e4182 /sql/event_executor.cc | |
parent | c1cb8db8cacf5f7e8f97457690a96da441a320a4 (diff) | |
download | mariadb-git-1c5573a47c4ef43558770c1c4e536ba39114dcbb.tar.gz |
WL #1034 update
- handle better non-latin1 identifiers
sql/event.cc:
- introduce a wrapper to compare easily and correctly
LEX_STRINGs
- remove few unneeded variables
- remove need_second_pass by restructuring the code. this brings
performance boost because the code bails out from the loop once
it hits what it looks for
- handle ALTER EVENT name RENAME TO name (throw an error message).
sql/event_executor.cc:
- comment about DBUG_FAULTY_THR
- indent fix
sql/event_timed.cc:
- fix a problem when event name is not latin1. a cyrillic event name
was crashing the parser so the I emulate SET NAMES utf8. The data is
already in utf8, being loaded from the disk.
sql/share/errmsg.txt:
add new error message
Diffstat (limited to 'sql/event_executor.cc')
-rw-r--r-- | sql/event_executor.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sql/event_executor.cc b/sql/event_executor.cc index f3db374af54..1e45d984425 100644 --- a/sql/event_executor.cc +++ b/sql/event_executor.cc @@ -19,6 +19,15 @@ #include "event_priv.h" #include "sp.h" + +/* + Make this define DBUG_FAULTY_THR to be able to put breakpoints inside + code used by the scheduler's thread(s). In this case user connections + are not possible because the scheduler thread code is ran inside the + main thread (no spawning takes place. If you want to debug client + connection then start with --one-thread and make the define + DBUG_FAULTY_THR2 ! +*/ #define DBUG_FAULTY_THR2 extern ulong thread_created; @@ -204,7 +213,7 @@ event_executor_main(void *arg) VOID(pthread_mutex_unlock(&LOCK_evex_running)); if (evex_load_events_from_db(thd)) - goto err; + goto err; THD_CHECK_SENTRY(thd); /* Read queries from the IO/THREAD until this thread is killed */ |