Below is the list of changes that have just been committed into a local
5.1 repository of andrey. When andrey does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet
1.2198 06/02/28 17:02:31 andrey@lmy004. +1 -0
don't use magic numbers when there are already constants
(forgotten to be committed)
sql/event_executor.cc
1.37 06/02/28 17:02:22 andrey@lmy004. +5 -5
don't use magic numbers when there are already constants
(forgotten to be committed)
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: andrey
# Host: lmy004.
# Root: /work/mysql-5.1-bug16537
--- 1.36/sql/event_executor.cc 2006-02-28 14:43:41 +01:00
+++ 1.37/sql/event_executor.cc 2006-02-28 17:02:22 +01:00
@@ -329,7 +329,7 @@ executor_wait_till_next_event_exec(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 *
}
}
- 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);
}
| Thread |
|---|
| • bk commit into 5.1 tree (andrey:1.2198) | ahristov | 28 Feb |