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
da9d454c
Commit
da9d454c
authored
Jul 02, 2003
by
vva@eagle.mysql.r18.ru
Browse files
Options
Browse Files
Download
Plain Diff
Merge eagle.mysql.r18.ru:/home/vva/work/mysql.orig/clear/mysql-4.0
into eagle.mysql.r18.ru:/home/vva/work/BUG_672/mysql-4.0
parents
d2d220ea
55e046a8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
client/mysqlbinlog.cc
client/mysqlbinlog.cc
+1
-1
sql/sql_parse.cc
sql/sql_parse.cc
+2
-1
sql/sql_repl.cc
sql/sql_repl.cc
+7
-1
No files found.
client/mysqlbinlog.cc
View file @
da9d454c
...
@@ -327,7 +327,7 @@ static void dump_remote_log_entries(const char* logname)
...
@@ -327,7 +327,7 @@ static void dump_remote_log_entries(const char* logname)
len
=
net_safe_read
(
mysql
);
len
=
net_safe_read
(
mysql
);
if
(
len
==
packet_error
)
if
(
len
==
packet_error
)
die
(
"Error reading packet from server: %s"
,
mysql_error
(
mysql
));
die
(
"Error reading packet from server: %s"
,
mysql_error
(
mysql
));
if
(
len
==
1
&&
net
->
read_pos
[
0
]
==
254
)
if
(
len
<
8
&&
net
->
read_pos
[
0
]
==
254
)
break
;
// end of data
break
;
// end of data
DBUG_PRINT
(
"info"
,(
"len= %u, net->read_pos[5] = %d
\n
"
,
DBUG_PRINT
(
"info"
,(
"len= %u, net->read_pos[5] = %d
\n
"
,
len
,
net
->
read_pos
[
5
]));
len
,
net
->
read_pos
[
5
]));
...
...
sql/sql_parse.cc
View file @
da9d454c
...
@@ -1160,7 +1160,8 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
...
@@ -1160,7 +1160,8 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
pos
=
uint4korr
(
packet
);
pos
=
uint4korr
(
packet
);
flags
=
uint2korr
(
packet
+
4
);
flags
=
uint2korr
(
packet
+
4
);
thd
->
server_id
=
0
;
/* avoid suicide */
thd
->
server_id
=
0
;
/* avoid suicide */
kill_zombie_dump_threads
(
slave_server_id
=
uint4korr
(
packet
+
6
));
if
((
slave_server_id
=
uint4korr
(
packet
+
6
)))
kill_zombie_dump_threads
(
slave_server_id
);
thd
->
server_id
=
slave_server_id
;
thd
->
server_id
=
slave_server_id
;
mysql_binlog_send
(
thd
,
thd
->
strdup
(
packet
+
10
),
(
my_off_t
)
pos
,
flags
);
mysql_binlog_send
(
thd
,
thd
->
strdup
(
packet
+
10
),
(
my_off_t
)
pos
,
flags
);
unregister_slave
(
thd
,
1
,
1
);
unregister_slave
(
thd
,
1
,
1
);
...
...
sql/sql_repl.cc
View file @
da9d454c
...
@@ -522,6 +522,11 @@ Increase max_allowed_packet on master";
...
@@ -522,6 +522,11 @@ Increase max_allowed_packet on master";
case
LOG_READ_EOF
:
case
LOG_READ_EOF
:
DBUG_PRINT
(
"wait"
,(
"waiting for data in binary log"
));
DBUG_PRINT
(
"wait"
,(
"waiting for data in binary log"
));
if
(
thd
->
server_id
==
0
)
{
pthread_mutex_unlock
(
log_lock
);
goto
end
;
}
if
(
!
thd
->
killed
)
if
(
!
thd
->
killed
)
{
{
/* Note that the following call unlocks lock_log */
/* Note that the following call unlocks lock_log */
...
@@ -611,6 +616,7 @@ Increase max_allowed_packet on master";
...
@@ -611,6 +616,7 @@ Increase max_allowed_packet on master";
}
}
}
}
end:
end_io_cache
(
&
log
);
end_io_cache
(
&
log
);
(
void
)
my_close
(
file
,
MYF
(
MY_WME
));
(
void
)
my_close
(
file
,
MYF
(
MY_WME
));
...
@@ -621,7 +627,7 @@ Increase max_allowed_packet on master";
...
@@ -621,7 +627,7 @@ Increase max_allowed_packet on master";
pthread_mutex_unlock
(
&
LOCK_thread_count
);
pthread_mutex_unlock
(
&
LOCK_thread_count
);
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
err:
err:
thd
->
proc_info
=
"waiting to finalize termination"
;
thd
->
proc_info
=
"waiting to finalize termination"
;
end_io_cache
(
&
log
);
end_io_cache
(
&
log
);
/*
/*
...
...
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