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
e4733cc8
Commit
e4733cc8
authored
Aug 25, 2005
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Plain Diff
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0
into sanja.is.com.ua:/home/bell/mysql/bk/work-bug1-5.0
parents
97ad1cba
f0063194
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
sql/mysqld.cc
sql/mysqld.cc
+14
-12
No files found.
sql/mysqld.cc
View file @
e4733cc8
...
@@ -1328,7 +1328,7 @@ static void set_root(const char *path)
...
@@ -1328,7 +1328,7 @@ static void set_root(const char *path)
#endif
#endif
}
}
static
void
server
_init
(
void
)
static
void
network
_init
(
void
)
{
{
struct
sockaddr_in
IPaddr
;
struct
sockaddr_in
IPaddr
;
#ifdef HAVE_SYS_UN_H
#ifdef HAVE_SYS_UN_H
...
@@ -1378,16 +1378,6 @@ static void server_init(void)
...
@@ -1378,16 +1378,6 @@ static void server_init(void)
}
}
}
}
if
((
user_info
=
check_user
(
mysqld_user
)))
{
#if defined(HAVE_MLOCKALL) && defined(MCL_CURRENT)
if
(
locked_in_memory
)
// getuid() == 0 here
set_effective_user
(
user_info
);
else
#endif
set_user
(
mysqld_user
,
user_info
);
}
#ifdef __NT__
#ifdef __NT__
/* create named pipe */
/* create named pipe */
if
(
Service
.
IsNT
()
&&
mysqld_unix_port
[
0
]
&&
!
opt_bootstrap
&&
if
(
Service
.
IsNT
()
&&
mysqld_unix_port
[
0
]
&&
!
opt_bootstrap
&&
...
@@ -3205,7 +3195,17 @@ int main(int argc, char **argv)
...
@@ -3205,7 +3195,17 @@ int main(int argc, char **argv)
mysql_data_home
=
mysql_data_home_buff
;
mysql_data_home
=
mysql_data_home_buff
;
mysql_data_home
[
0
]
=
FN_CURLIB
;
// all paths are relative from here
mysql_data_home
[
0
]
=
FN_CURLIB
;
// all paths are relative from here
mysql_data_home
[
1
]
=
0
;
mysql_data_home
[
1
]
=
0
;
server_init
();
if
((
user_info
=
check_user
(
mysqld_user
)))
{
#if defined(HAVE_MLOCKALL) && defined(MCL_CURRENT)
if
(
locked_in_memory
)
// getuid() == 0 here
set_effective_user
(
user_info
);
else
#endif
set_user
(
mysqld_user
,
user_info
);
}
if
(
opt_bin_log
&&
!
server_id
)
if
(
opt_bin_log
&&
!
server_id
)
{
{
...
@@ -3230,6 +3230,8 @@ we force server id to 2, but this MySQL server will not act as a slave.");
...
@@ -3230,6 +3230,8 @@ we force server id to 2, but this MySQL server will not act as a slave.");
if
(
init_server_components
())
if
(
init_server_components
())
exit
(
1
);
exit
(
1
);
network_init
();
#ifdef __WIN__
#ifdef __WIN__
if
(
!
opt_console
)
if
(
!
opt_console
)
{
{
...
...
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