Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
796e45a2
Commit
796e45a2
authored
Feb 28, 2006
by
andrey@lmy004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't use magic numbers when there are already constants
(forgotten to be committed)
parent
d1056a7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
sql/event_executor.cc
sql/event_executor.cc
+5
-5
No files found.
sql/event_executor.cc
View file @
796e45a2
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment