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
5a1b15b3
Commit
5a1b15b3
authored
Dec 07, 2000
by
sasha@mysql.sashanet.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more cleanup of slave load data infile - trying to track down bug,
parent
3e4697c8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
.bzrignore
.bzrignore
+4
-0
sql/slave.cc
sql/slave.cc
+3
-0
sql/sql_load.cc
sql/sql_load.cc
+3
-1
No files found.
.bzrignore
View file @
5a1b15b3
...
...
@@ -425,3 +425,7 @@ mysql-test/var/slave-data/mysql-bin.012
mysql-test/var/slave-data/mysql-bin.013
mysql-test/var/slave-data/mysql-bin.014
mysql-test/var/slave-data/mysql-bin.index
BitKeeper/tmp/applied.list
BitKeeper/tmp/backup.list
BitKeeper/tmp/backup.sfio
BitKeeper/tmp/sfile.list
sql/slave.cc
View file @
5a1b15b3
...
...
@@ -874,6 +874,9 @@ static int exec_event(THD* thd, NET* net, MASTER_INFO* mi, int event_len)
if
(
mysql_load
(
thd
,
&
ex
,
&
tables
,
fields
,
handle_dup
,
1
,
TL_WRITE
))
thd
->
query_error
=
1
;
if
(
thd
->
cuted_fields
)
sql_print_error
(
"Slave: load data infile at position %d in log \
'%s' produced %d warning(s)"
,
glob_mi
.
pos
,
RPL_LOG_NAME
,
thd
->
cuted_fields
);
net
->
pkt_nr
=
thd
->
net
.
pkt_nr
;
}
else
// we will just ask the master to send us /dev/null if we do not want to
...
...
sql/sql_load.cc
View file @
5a1b15b3
...
...
@@ -241,7 +241,9 @@ int mysql_load(THD *thd,sql_exchange *ex,TABLE_LIST *table_list,
sprintf
(
name
,
ER
(
ER_LOAD_INFO
),
info
.
records
,
info
.
deleted
,
info
.
records
-
info
.
copied
,
thd
->
cuted_fields
);
send_ok
(
&
thd
->
net
,
info
.
copied
+
info
.
deleted
,
0L
,
name
);
mysql_update_log
.
write
(
thd
,
thd
->
query
,
thd
->
query_length
);
// on the slave thd->query is never initialized
if
(
!
thd
->
slave_thread
)
mysql_update_log
.
write
(
thd
,
thd
->
query
,
thd
->
query_length
);
if
(
!
table
->
file
->
has_transactions
())
thd
->
options
|=
OPTION_STATUS_NO_TRANS_UPDATE
;
...
...
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