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
e385a68f
Commit
e385a68f
authored
Jan 12, 2006
by
andrey@lmy004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WL #1034 (Internal CRON) post-push update
- fix compile failure on QNX and FreeBSD
parent
8f86eac1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
sql/event_executor.cc
sql/event_executor.cc
+9
-2
sql/event_timed.cc
sql/event_timed.cc
+2
-2
No files found.
sql/event_executor.cc
View file @
e385a68f
...
@@ -184,6 +184,13 @@ event_executor_main(void *arg)
...
@@ -184,6 +184,13 @@ event_executor_main(void *arg)
// needs to call my_thread_init(), otherwise we get a coredump in DBUG_ stuff
// needs to call my_thread_init(), otherwise we get a coredump in DBUG_ stuff
my_thread_init
();
my_thread_init
();
if
(
sizeof
(
my_time_t
)
!=
sizeof
(
time_t
))
{
sql_print_error
(
"sizeof(my_time_t) != sizeof(time_t) ."
"The scheduler will not work correctly. Stopping."
);
goto
err_no_thd
;
}
//TODO Andrey: Check for NULL
//TODO Andrey: Check for NULL
if
(
!
(
thd
=
new
THD
))
// note that contructor of THD uses DBUG_ !
if
(
!
(
thd
=
new
THD
))
// note that contructor of THD uses DBUG_ !
{
{
...
@@ -275,7 +282,7 @@ event_executor_main(void *arg)
...
@@ -275,7 +282,7 @@ event_executor_main(void *arg)
}
}
DBUG_PRINT
(
"evex main thread"
,(
"computing time to sleep till next exec"
));
DBUG_PRINT
(
"evex main thread"
,(
"computing time to sleep till next exec"
));
time
(
&
now
);
time
(
(
time_t
*
)
&
now
);
my_tz_UTC
->
gmt_sec_to_TIME
(
&
time_now
,
now
);
my_tz_UTC
->
gmt_sec_to_TIME
(
&
time_now
,
now
);
t2sleep
=
evex_time_diff
(
&
et
->
execute_at
,
&
time_now
);
t2sleep
=
evex_time_diff
(
&
et
->
execute_at
,
&
time_now
);
VOID
(
pthread_mutex_unlock
(
&
LOCK_event_arrays
));
VOID
(
pthread_mutex_unlock
(
&
LOCK_event_arrays
));
...
...
sql/event_timed.cc
View file @
e385a68f
...
@@ -537,7 +537,7 @@ event_timed::compute_next_execution_time()
...
@@ -537,7 +537,7 @@ event_timed::compute_next_execution_time()
}
}
goto
ret
;
goto
ret
;
}
}
time
(
&
now
);
time
(
(
time_t
*
)
&
now
);
my_tz_UTC
->
gmt_sec_to_TIME
(
&
time_now
,
now
);
my_tz_UTC
->
gmt_sec_to_TIME
(
&
time_now
,
now
);
/*
/*
sql_print_information("[%s.%s]", dbname.str, name.str);
sql_print_information("[%s.%s]", dbname.str, name.str);
...
@@ -703,7 +703,7 @@ event_timed::mark_last_executed()
...
@@ -703,7 +703,7 @@ event_timed::mark_last_executed()
TIME
time_now
;
TIME
time_now
;
my_time_t
now
;
my_time_t
now
;
time
(
&
now
);
time
(
(
time_t
*
)
&
now
);
my_tz_UTC
->
gmt_sec_to_TIME
(
&
time_now
,
now
);
my_tz_UTC
->
gmt_sec_to_TIME
(
&
time_now
,
now
);
last_executed
=
time_now
;
// was execute_at
last_executed
=
time_now
;
// was execute_at
...
...
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