diff options
author | unknown <andrey@lmy004.> | 2005-12-12 21:19:19 +0100 |
---|---|---|
committer | unknown <andrey@lmy004.> | 2005-12-12 21:19:19 +0100 |
commit | 81eadfcac18f3adc29c55d440e62823855f5b070 (patch) | |
tree | bb204756d7ec8bb96576f0bacb52879ab6ddddbf /sql/event.h | |
parent | 1c5573a47c4ef43558770c1c4e536ba39114dcbb (diff) | |
download | mariadb-git-81eadfcac18f3adc29c55d440e62823855f5b070.tar.gz |
WL#1034 update
QUEUE implementation working now. this should be ready more or less
for testing once the debug output is being cleaned and some things
around DYNAMIC_ARRAY are cleaned
- fix handling in case of errors that lead to crashes, now no more crashes
in case of table corruption and such.
include/queues.h:
introduce a safe version of queue_insert that will extend the queue if
necessary. the auto_extent is passed to the _ex version of init_queue()
mysys/queues.c:
add init_queue_ex() implementation
add queue_insert_safe() implementation
sql/event.cc:
- move mysql_priv.h inclusion to event_priv.h
- use a priority queue instead of DYNAMIC_ARRAY which is sorted
sql/event.h:
reorder
sql/event_executor.cc:
reorder
sql/event_priv.h:
- reorder a bit
- add macroses and functions for queue manipulation which stay on top
of QUEUE (partly implemented for DYNAMIC_ARRAY but will be cleared to be
only for QUEUE).
sql/event_timed.cc:
allocate one more byte and zeroterminate, really
Diffstat (limited to 'sql/event.h')
-rw-r--r-- | sql/event.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sql/event.h b/sql/event.h index 12a965c1ec8..f3b49a99488 100644 --- a/sql/event.h +++ b/sql/event.h @@ -16,11 +16,9 @@ #ifndef _EVENT_H_ #define _EVENT_H_ -#include "sp_head.h" -#include "sp.h" - -extern ulong opt_event_executor; +#include "sp.h" +#include "sp_head.h" #define EVEX_OK SP_OK #define EVEX_KEY_NOT_FOUND SP_KEY_NOT_FOUND |