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
13f525c0
Commit
13f525c0
authored
Nov 28, 2003
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpl_parse and rpl_probe don't have to be reset as they are already 0
parent
90fc2b97
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
19 deletions
+23
-19
libmysql/libmysql.c
libmysql/libmysql.c
+23
-19
No files found.
libmysql/libmysql.c
View file @
13f525c0
...
...
@@ -2256,29 +2256,33 @@ static MYSQL* spawn_init(MYSQL* parent, const char* host,
const
char
*
passwd
)
{
MYSQL
*
child
;
if
(
!
(
child
=
mysql_init
(
0
)))
return
0
;
DBUG_ENTER
(
"spawn_init"
);
if
(
!
(
child
=
mysql_init
(
0
)))
DBUG_RETURN
(
0
);
child
->
options
.
user
=
my_strdup
((
user
)
?
user
:
(
parent
->
user
?
parent
->
user
:
parent
->
options
.
user
),
MYF
(
0
));
child
->
options
.
password
=
my_strdup
((
passwd
)
?
passwd
:
(
parent
->
passwd
?
parent
->
passwd
:
parent
->
options
.
password
),
MYF
(
0
));
child
->
options
.
port
=
port
;
child
->
options
.
host
=
my_strdup
((
host
)
?
host
:
(
parent
->
host
?
parent
->
host
:
parent
->
options
.
host
),
MYF
(
0
));
child
->
options
.
user
=
my_strdup
((
user
)
?
user
:
(
parent
->
user
?
parent
->
user
:
parent
->
options
.
user
),
MYF
(
0
));
child
->
options
.
password
=
my_strdup
((
passwd
)
?
passwd
:
(
parent
->
passwd
?
parent
->
passwd
:
parent
->
options
.
password
),
MYF
(
0
));
child
->
options
.
port
=
port
;
child
->
options
.
host
=
my_strdup
((
host
)
?
host
:
(
parent
->
host
?
parent
->
host
:
parent
->
options
.
host
),
MYF
(
0
));
if
(
parent
->
db
)
child
->
options
.
db
=
my_strdup
(
parent
->
db
,
MYF
(
0
));
child
->
options
.
db
=
my_strdup
(
parent
->
db
,
MYF
(
0
));
else
if
(
parent
->
options
.
db
)
child
->
options
.
db
=
my_strdup
(
parent
->
options
.
db
,
MYF
(
0
));
child
->
options
.
rpl_parse
=
child
->
options
.
rpl_probe
=
child
->
rpl_pivot
=
0
;
child
->
options
.
db
=
my_strdup
(
parent
->
options
.
db
,
MYF
(
0
));
return
child
;
/*
rpl_pivot is set to 1 in mysql_init(); Reset it as we are not doing
replication here
*/
child
->
rpl_pivot
=
0
;
DBUG_RETURN
(
child
);
}
...
...
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