diff options
author | unknown <andrey@lmy004.> | 2006-02-28 17:02:31 +0100 |
---|---|---|
committer | unknown <andrey@lmy004.> | 2006-02-28 17:02:31 +0100 |
commit | 9a720dfa4f0329fdb8f84621ee40414e2ea219d5 (patch) | |
tree | edfcb0a4a0e99f118a382cb5bc3ccb46be59aaf7 /sql/event_executor.cc | |
parent | 79298b3e77f996022d8cb64d6f38018dbdcc6390 (diff) | |
download | mariadb-git-9a720dfa4f0329fdb8f84621ee40414e2ea219d5.tar.gz |
don't use magic numbers when there are already constants
(forgotten to be committed)
Diffstat (limited to 'sql/event_executor.cc')
-rw-r--r-- | sql/event_executor.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sql/event_executor.cc b/sql/event_executor.cc index a446f3f8509..15cdbf8aa55 100644 --- a/sql/event_executor.cc +++ b/sql/event_executor.cc @@ -329,7 +329,7 @@ executor_wait_till_next_event_exec(THD *thd) if (!evex_queue_num_elements(EVEX_EQ_NAME)) { VOID(pthread_mutex_unlock(&LOCK_event_arrays)); - DBUG_RETURN(1); + DBUG_RETURN(WAIT_STATUS_EMPTY_QUEUE); } et= evex_queue_first_element(&EVEX_EQ_NAME, event_timed*); DBUG_ASSERT(et); @@ -368,13 +368,13 @@ executor_wait_till_next_event_exec(THD *thd) } } - int ret= 0; + int ret= WAIT_STATUS_READY; if (!evex_queue_num_elements(EVEX_EQ_NAME)) - ret= 1; + ret= WAIT_STATUS_EMPTY_QUEUE; else if (evex_queue_first_element(&EVEX_EQ_NAME, event_timed*) != et) - ret= 2; + ret= WAIT_STATUS_NEW_TOP_EVENT; if (thd->killed && event_executor_running_global_var) - ret= 3; + ret= WAIT_STATUS_STOP_EXECUTOR; DBUG_RETURN(ret); } |