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
b27e486a
Commit
b27e486a
authored
Apr 13, 2007
by
mats@romeo.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing portability problem by using my_time_t instead of time_t.
parent
84ec7be2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
sql/slave.cc
sql/slave.cc
+2
-3
No files found.
sql/slave.cc
View file @
b27e486a
...
...
@@ -1334,8 +1334,7 @@ bool show_master_info(THD* thd, MASTER_INFO* mi)
if
((
mi
->
slave_running
==
MYSQL_SLAVE_RUN_CONNECT
)
&&
mi
->
rli
.
slave_running
)
{
long
time_diff
=
((
long
)((
time_t
)
time
((
time_t
*
)
0
)
-
mi
->
rli
.
last_master_timestamp
)
long
time_diff
=
((
long
)(
time
(
0
)
-
mi
->
rli
.
last_master_timestamp
)
-
mi
->
clock_diff_with_master
);
/*
Apparently on some systems time_diff can be <0. Here are possible
...
...
@@ -3461,7 +3460,7 @@ static Log_event* next_event(RELAY_LOG_INFO* rli)
the events have old timestamps (then you get "many", 0, "many").
Transient phases like this can't really be fixed.
*/
time_t
save_timestamp
=
rli
->
last_master_timestamp
;
my_
time_t
save_timestamp
=
rli
->
last_master_timestamp
;
rli
->
last_master_timestamp
=
0
;
DBUG_ASSERT
(
rli
->
relay_log
.
get_open_count
()
==
...
...
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