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
dfa2a76c
Commit
dfa2a76c
authored
Feb 14, 2001
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge work:/home/bk/mysql
into mysql.sashanet.com:/home/sasha/src/bk/mysql sql/slave.cc: Auto merged
parents
eb38835d
09c3d408
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
2 deletions
+24
-2
mysql-test/r/rpl000002.result
mysql-test/r/rpl000002.result
+4
-0
mysql-test/t/rpl000002.test
mysql-test/t/rpl000002.test
+18
-1
sql/slave.cc
sql/slave.cc
+2
-1
No files found.
mysql-test/r/rpl000002.result
View file @
dfa2a76c
...
...
@@ -2,3 +2,7 @@ n
2000
2001
2002
id created
1 1970-01-01 06:25:45
id created
1 1970-01-01 06:25:45
mysql-test/t/rpl000002.test
View file @
dfa2a76c
...
...
@@ -9,9 +9,26 @@ save_master_pos;
connection
slave
;
use
test
;
sync_with_master
;
@
r
/
rpl000002
.
result
select
*
from
t1
;
select
*
from
t1
;
connection
master
;
drop
table
t1
;
save_master_pos
;
connection
slave
;
sync_with_master
;
slave
stop
;
connection
master
;
drop
table
if
exists
t2
;
create
table
t2
(
id
int
auto_increment
primary
key
,
created
datetime
);
set
timestamp
=
12345
;
insert
into
t2
set
created
=
now
();
select
*
from
t2
;
save_master_pos
;
connection
slave
;
slave
start
;
sync_with_master
;
select
*
from
t2
;
connection
master
;
drop
table
t2
;
save_master_pos
;
connection
slave
;
sync_with_master
;
sql/slave.cc
View file @
dfa2a76c
...
...
@@ -857,7 +857,8 @@ static int exec_event(THD* thd, NET* net, MASTER_INFO* mi, int event_len)
thd
->
server_id
=
ev
->
server_id
;
// use the original server id for logging
thd
->
set_time
();
// time the query
ev
->
when
=
time
(
NULL
);
if
(
!
ev
->
when
)
ev
->
when
=
time
(
NULL
);
switch
(
type_code
)
{
case
QUERY_EVENT
:
...
...
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