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
61cb6925
Commit
61cb6925
authored
Mar 21, 2003
by
greg@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Missed one file from Novell changes in 1.1686
parent
6c7b1b2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
49 deletions
+49
-49
netware/mysqld_safe.c
netware/mysqld_safe.c
+49
-49
No files found.
netware/mysqld_safe.c
View file @
61cb6925
...
@@ -60,7 +60,7 @@ void vlog(char *, va_list);
...
@@ -60,7 +60,7 @@ void vlog(char *, va_list);
void
log
(
char
*
,
...);
void
log
(
char
*
,
...);
void
start_defaults
(
int
,
char
*
[]);
void
start_defaults
(
int
,
char
*
[]);
void
finish_defaults
();
void
finish_defaults
();
void
read_defaults
(
arg_list
);
void
read_defaults
(
arg_list
_t
*
);
void
parse_args
(
int
,
char
*
[]);
void
parse_args
(
int
,
char
*
[]);
void
get_options
(
int
,
char
*
[]);
void
get_options
(
int
,
char
*
[]);
void
check_data_vol
();
void
check_data_vol
();
...
@@ -249,9 +249,9 @@ void finish_defaults()
...
@@ -249,9 +249,9 @@ void finish_defaults()
Read the defaults.
Read the defaults.
******************************************************************************/
******************************************************************************/
void
read_defaults
(
arg_list
pal
)
void
read_defaults
(
arg_list
_t
*
pal
)
{
{
arg_list
al
;
arg_list
_t
al
;
char
defaults_file
[
PATH_MAX
];
char
defaults_file
[
PATH_MAX
];
char
mydefaults
[
PATH_MAX
];
char
mydefaults
[
PATH_MAX
];
char
line
[
PATH_MAX
];
char
line
[
PATH_MAX
];
...
@@ -265,17 +265,17 @@ void read_defaults(arg_list pal)
...
@@ -265,17 +265,17 @@ void read_defaults(arg_list pal)
snprintf
(
mydefaults
,
PATH_MAX
,
"%s/bin/my_print_defaults"
,
basedir
);
snprintf
(
mydefaults
,
PATH_MAX
,
"%s/bin/my_print_defaults"
,
basedir
);
// args
// args
init_args
(
al
);
init_args
(
&
al
);
add_arg
(
al
,
mydefaults
);
add_arg
(
&
al
,
mydefaults
);
if
(
default_option
[
0
])
add_arg
(
al
,
default_option
);
if
(
default_option
[
0
])
add_arg
(
&
al
,
default_option
);
add_arg
(
al
,
"mysqld"
);
add_arg
(
&
al
,
"mysqld"
);
add_arg
(
al
,
"server"
);
add_arg
(
&
al
,
"server"
);
add_arg
(
al
,
"mysqld_safe"
);
add_arg
(
&
al
,
"mysqld_safe"
);
add_arg
(
al
,
"safe_mysqld"
);
add_arg
(
&
al
,
"safe_mysqld"
);
spawn
(
mydefaults
,
al
,
TRUE
,
NULL
,
defaults_file
,
NULL
);
spawn
(
mydefaults
,
&
al
,
TRUE
,
NULL
,
defaults_file
,
NULL
);
free_args
(
al
);
free_args
(
&
al
);
// gather defaults
// gather defaults
if
((
fp
=
fopen
(
defaults_file
,
"r"
))
!=
NULL
)
if
((
fp
=
fopen
(
defaults_file
,
"r"
))
!=
NULL
)
...
@@ -405,17 +405,17 @@ void parse_args(int argc, char *argv[])
...
@@ -405,17 +405,17 @@ void parse_args(int argc, char *argv[])
******************************************************************************/
******************************************************************************/
void
get_options
(
int
argc
,
char
*
argv
[])
void
get_options
(
int
argc
,
char
*
argv
[])
{
{
arg_list
al
;
arg_list
_t
al
;
// start defaults
// start defaults
start_defaults
(
argc
,
argv
);
start_defaults
(
argc
,
argv
);
// default file arguments
// default file arguments
init_args
(
al
);
init_args
(
&
al
);
add_arg
(
al
,
"ignore"
);
add_arg
(
&
al
,
"ignore"
);
read_defaults
(
al
);
read_defaults
(
&
al
);
parse_args
(
al
->
argc
,
al
->
argv
);
parse_args
(
al
.
argc
,
al
.
argv
);
free_args
(
al
);
free_args
(
&
al
);
// command-line arguments
// command-line arguments
parse_args
(
argc
,
argv
);
parse_args
(
argc
,
argv
);
...
@@ -504,7 +504,7 @@ void check_setup()
...
@@ -504,7 +504,7 @@ void check_setup()
******************************************************************************/
******************************************************************************/
void
check_tables
()
void
check_tables
()
{
{
arg_list
al
;
arg_list
_t
al
;
char
mycheck
[
PATH_MAX
];
char
mycheck
[
PATH_MAX
];
char
table
[
PATH_MAX
];
char
table
[
PATH_MAX
];
char
db
[
PATH_MAX
];
char
db
[
PATH_MAX
];
...
@@ -549,21 +549,21 @@ void check_tables()
...
@@ -549,21 +549,21 @@ void check_tables()
snprintf
(
mycheck
,
PATH_MAX
,
"%s/bin/myisamchk"
,
basedir
);
snprintf
(
mycheck
,
PATH_MAX
,
"%s/bin/myisamchk"
,
basedir
);
// args
// args
init_args
(
al
);
init_args
(
&
al
);
add_arg
(
al
,
mycheck
);
add_arg
(
&
al
,
mycheck
);
add_arg
(
al
,
"--silent"
);
add_arg
(
&
al
,
"--silent"
);
add_arg
(
al
,
"--force"
);
add_arg
(
&
al
,
"--force"
);
add_arg
(
al
,
"--fast"
);
add_arg
(
&
al
,
"--fast"
);
add_arg
(
al
,
"--medium-check"
);
add_arg
(
&
al
,
"--medium-check"
);
add_arg
(
al
,
"-O"
);
add_arg
(
&
al
,
"-O"
);
add_arg
(
al
,
"key_buffer=64M"
);
add_arg
(
&
al
,
"key_buffer=64M"
);
add_arg
(
al
,
"-O"
);
add_arg
(
&
al
,
"-O"
);
add_arg
(
al
,
"sort_buffer=64M"
);
add_arg
(
&
al
,
"sort_buffer=64M"
);
add_arg
(
al
,
table
);
add_arg
(
&
al
,
table
);
spawn
(
mycheck
,
al
,
TRUE
,
NULL
,
NULL
,
NULL
);
spawn
(
mycheck
,
&
al
,
TRUE
,
NULL
,
NULL
,
NULL
);
free_args
(
al
);
free_args
(
&
al
);
}
}
else
if
(
strindex
(
table
,
".ism"
))
else
if
(
strindex
(
table
,
".ism"
))
{
{
...
@@ -573,17 +573,17 @@ void check_tables()
...
@@ -573,17 +573,17 @@ void check_tables()
snprintf
(
mycheck
,
PATH_MAX
,
"%s/bin/isamchk"
,
basedir
);
snprintf
(
mycheck
,
PATH_MAX
,
"%s/bin/isamchk"
,
basedir
);
// args
// args
init_args
(
al
);
init_args
(
&
al
);
add_arg
(
al
,
mycheck
);
add_arg
(
&
al
,
mycheck
);
add_arg
(
al
,
"--silent"
);
add_arg
(
&
al
,
"--silent"
);
add_arg
(
al
,
"--force"
);
add_arg
(
&
al
,
"--force"
);
add_arg
(
al
,
"-O"
);
add_arg
(
&
al
,
"-O"
);
add_arg
(
al
,
"sort_buffer=64M"
);
add_arg
(
&
al
,
"sort_buffer=64M"
);
add_arg
(
al
,
table
);
add_arg
(
&
al
,
table
);
spawn
(
mycheck
,
al
,
TRUE
,
NULL
,
NULL
,
NULL
);
spawn
(
mycheck
,
&
al
,
TRUE
,
NULL
,
NULL
,
NULL
);
free_args
(
al
);
free_args
(
&
al
);
}
}
}
}
}
}
...
@@ -599,7 +599,7 @@ void check_tables()
...
@@ -599,7 +599,7 @@ void check_tables()
******************************************************************************/
******************************************************************************/
void
mysql_start
(
int
argc
,
char
*
argv
[])
void
mysql_start
(
int
argc
,
char
*
argv
[])
{
{
arg_list
al
;
arg_list
_t
al
;
int
i
,
j
,
err
;
int
i
,
j
,
err
;
struct
stat
info
;
struct
stat
info
;
time_t
cal
;
time_t
cal
;
...
@@ -619,8 +619,8 @@ void mysql_start(int argc, char *argv[])
...
@@ -619,8 +619,8 @@ void mysql_start(int argc, char *argv[])
};
};
// args
// args
init_args
(
al
);
init_args
(
&
al
);
add_arg
(
al
,
"%s"
,
mysqld
);
add_arg
(
&
al
,
"%s"
,
mysqld
);
// parent args
// parent args
for
(
i
=
1
;
i
<
argc
;
i
++
)
for
(
i
=
1
;
i
<
argc
;
i
++
)
...
@@ -637,7 +637,7 @@ void mysql_start(int argc, char *argv[])
...
@@ -637,7 +637,7 @@ void mysql_start(int argc, char *argv[])
}
}
}
}
if
(
!
skip
)
add_arg
(
al
,
"%s"
,
argv
[
i
]);
if
(
!
skip
)
add_arg
(
&
al
,
"%s"
,
argv
[
i
]);
}
}
// spawn
// spawn
...
@@ -653,7 +653,7 @@ void mysql_start(int argc, char *argv[])
...
@@ -653,7 +653,7 @@ void mysql_start(int argc, char *argv[])
log
(
"mysql started : %s
\n
"
,
stamp
);
log
(
"mysql started : %s
\n
"
,
stamp
);
// spawn mysqld
// spawn mysqld
spawn
(
mysqld
,
al
,
TRUE
,
NULL
,
NULL
,
err_log
);
spawn
(
mysqld
,
&
al
,
TRUE
,
NULL
,
NULL
,
err_log
);
}
}
while
(
!
stat
(
pid_file
,
&
info
));
while
(
!
stat
(
pid_file
,
&
info
));
...
@@ -664,7 +664,7 @@ void mysql_start(int argc, char *argv[])
...
@@ -664,7 +664,7 @@ void mysql_start(int argc, char *argv[])
log
(
"mysql stopped : %s
\n\n
"
,
stamp
);
log
(
"mysql stopped : %s
\n\n
"
,
stamp
);
// free args
// free args
free_args
(
al
);
free_args
(
&
al
);
}
}
/******************************************************************************
/******************************************************************************
...
...
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