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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
30deafa9
Commit
30deafa9
authored
Dec 15, 2006
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Calculate offset for wait time passed to set_timespec
Pass different msg if waiting on empty queue
parent
a246eb39
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
sql/event_queue.cc
sql/event_queue.cc
+3
-2
No files found.
sql/event_queue.cc
View file @
30deafa9
...
@@ -731,7 +731,8 @@ Event_queue::get_top_for_execution_if_time(THD *thd, Event_job_data **job_data)
...
@@ -731,7 +731,8 @@ Event_queue::get_top_for_execution_if_time(THD *thd, Event_job_data **job_data)
if
(
queue
.
elements
)
if
(
queue
.
elements
)
{
{
top
=
((
Event_queue_element
*
)
queue_element
(
&
queue
,
0
));
top
=
((
Event_queue_element
*
)
queue_element
(
&
queue
,
0
));
set_timespec
(
top_time
,
sec_since_epoch_TIME
(
&
top
->
execute_at
));
set_timespec
(
top_time
,
sec_since_epoch_TIME
(
&
top
->
execute_at
)
-
now
);
abstime
=
&
top_time
;
abstime
=
&
top_time
;
}
}
...
@@ -747,7 +748,7 @@ Event_queue::get_top_for_execution_if_time(THD *thd, Event_job_data **job_data)
...
@@ -747,7 +748,7 @@ Event_queue::get_top_for_execution_if_time(THD *thd, Event_job_data **job_data)
else
else
{
{
set_zero_time
(
&
next_activation_at
,
MYSQL_TIMESTAMP_DATETIME
);
set_zero_time
(
&
next_activation_at
,
MYSQL_TIMESTAMP_DATETIME
);
msg
=
queue_
wait
_msg
;
msg
=
queue_
empty
_msg
;
}
}
cond_wait
(
thd
,
abstime
,
msg
,
SCHED_FUNC
,
__LINE__
);
cond_wait
(
thd
,
abstime
,
msg
,
SCHED_FUNC
,
__LINE__
);
...
...
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