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
fff8ff08
Commit
fff8ff08
authored
Jun 07, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge pchardin@bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/cps/mysql/trees/mysql-5.0
parents
e5a97df6
4e482bd3
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
8 deletions
+10
-8
server-tools/instance-manager/instance_options.cc
server-tools/instance-manager/instance_options.cc
+5
-5
server-tools/instance-manager/instance_options.h
server-tools/instance-manager/instance_options.h
+2
-1
server-tools/instance-manager/parse_output.cc
server-tools/instance-manager/parse_output.cc
+1
-1
server-tools/instance-manager/parse_output.h
server-tools/instance-manager/parse_output.h
+2
-1
No files found.
server-tools/instance-manager/instance_options.cc
View file @
fff8ff08
...
...
@@ -370,19 +370,19 @@ int Instance_options::complete_initialization(const char *default_path,
if
(
!
gethostname
(
hostname
,
sizeof
(
hostname
)
-
1
))
{
if
(
instance_type
&
DEFAULT_SINGLE_INSTANCE
)
strxnmov
(
pidfilename
,
MAX_PATH_LEN
-
1
,
"--pid-file="
,
instance_name
,
"-"
,
hostname
,
".pid"
,
NullS
);
else
strxnmov
(
pidfilename
,
MAX_PATH_LEN
-
1
,
"--pid-file="
,
hostname
,
".pid"
,
NullS
);
else
strxnmov
(
pidfilename
,
MAX_PATH_LEN
-
1
,
"--pid-file="
,
instance_name
,
"-"
,
hostname
,
".pid"
,
NullS
);
}
else
{
if
(
instance_type
&
DEFAULT_SINGLE_INSTANCE
)
strxnmov
(
pidfilename
,
MAX_PATH_LEN
-
1
,
"--pid-file="
,
instance_name
,
strxnmov
(
pidfilename
,
MAX_PATH_LEN
-
1
,
"--pid-file="
,
"mysql"
,
".pid"
,
NullS
);
else
strxnmov
(
pidfilename
,
MAX_PATH_LEN
-
1
,
"--pid-file="
,
"mysql"
,
strxnmov
(
pidfilename
,
MAX_PATH_LEN
-
1
,
"--pid-file="
,
instance_name
,
".pid"
,
NullS
);
}
...
...
server-tools/instance-manager/instance_options.h
View file @
fff8ff08
...
...
@@ -34,7 +34,8 @@
don't have to synchronize between threads.
*/
enum
{
USUAL_INSTANCE
=
0
,
DEFAULT_SINGLE_INSTANCE
};
#define USUAL_INSTANCE 0
#define DEFAULT_SINGLE_INSTANCE 1
class
Instance_options
{
...
...
server-tools/instance-manager/parse_output.cc
View file @
fff8ff08
...
...
@@ -86,7 +86,7 @@ int parse_output_and_get_value(const char *command, const char *word,
an option value) or the whole line (if flag)
*/
linep
+=
found_word_len
;
/* swallow the previous one */
if
(
flag
&
GET_VALUE
)
/* not GET_LINE */
if
(
flag
&
GET_VALUE
)
{
get_word
((
const
char
**
)
&
linep
,
&
found_word_len
,
NONSPACE
);
if
(
input_buffer_len
<=
found_word_len
)
...
...
server-tools/instance-manager/parse_output.h
View file @
fff8ff08
...
...
@@ -16,7 +16,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
enum
{
GET_VALUE
=
1
,
GET_LINE
};
#define GET_VALUE 1
#define GET_LINE 2
int
parse_output_and_get_value
(
const
char
*
command
,
const
char
*
word
,
char
*
result
,
size_t
input_buffer_len
,
...
...
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