Bug #24260 Events: Don't compile scheduler code in embedded
Submitted: 13 Nov 2006 13:02 Modified: 7 Aug 2007 17:17
Reporter: Andrey Hristov Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Stored Routines Severity:S4 (Feature request)
Version:5.1 OS:Any
Assigned to: CPU Architecture:Any

[13 Nov 2006 13:02] Andrey Hristov
Description:
 Currently the scheduler is compiled in when libmysqld is built but there is a run-time check that disables its usage. It will be better if the scheduler code is conditionally compiled in.

How to repeat:
See the sources

Suggested fix:
#define EVENT_SCHEDULER_ENABLED EMBEDDED_LIBRARY

...
#if EVENT_SCHEDULER_ENABLED
//
// Here comes scheduler's code
//
#endif /* EVENT_SCHEDULER_ENABLED */

At later stage a configure switch could be added, if needed.
[14 Nov 2006 13:43] MySQL Verification Team
Thank you for the bug report.
[7 Aug 2007 17:17] Konstantin Osipov
Does not represent a bug, will be fixed when a request for this comes.