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
2c62cf25
Commit
2c62cf25
authored
May 20, 2011
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
4ea53bc2
f4ae8b76
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
sql/mysql_upgrade_service.cc
sql/mysql_upgrade_service.cc
+6
-5
No files found.
sql/mysql_upgrade_service.cc
View file @
2c62cf25
...
@@ -67,6 +67,7 @@ static struct my_option my_long_options[]=
...
@@ -67,6 +67,7 @@ static struct my_option my_long_options[]=
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"service"
,
'S'
,
"Name of the existing Windows service"
,
{
"service"
,
'S'
,
"Name of the existing Windows service"
,
&
opt_service
,
&
opt_service
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
&
opt_service
,
&
opt_service
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
0
,
0
,
0
,
0
,
0
,
0
,
GET_NO_ARG
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
}
};
};
...
@@ -96,7 +97,7 @@ static void log(const char *fmt, ...)
...
@@ -96,7 +97,7 @@ static void log(const char *fmt, ...)
va_start
(
args
,
fmt
);
va_start
(
args
,
fmt
);
vfprintf
(
stdout
,
fmt
,
args
);
vfprintf
(
stdout
,
fmt
,
args
);
va_end
(
args
);
va_end
(
args
);
fputc
(
'\n'
,
stdout
);
fputc
(
'\n'
,
stdout
);
fflush
(
stdout
);
fflush
(
stdout
);
}
}
...
@@ -117,13 +118,13 @@ static void die(const char *fmt, ...)
...
@@ -117,13 +118,13 @@ static void die(const char *fmt, ...)
logfile_path
);
logfile_path
);
}
}
va_end
(
args
);
va_end
(
args
);
fputc
(
'\n'
,
stderr
);
fputc
(
'\n'
,
stderr
);
fflush
(
stdout
);
fflush
(
stdout
);
/* Cleanup */
/* Cleanup */
/*
/*
Stop service that we started, if it was not initally running at
Stop service that we started, if it was not initally running at
program start.
program start.
*/
*/
if
(
initial_service_state
!=
-
1
&&
initial_service_state
!=
SERVICE_RUNNING
)
if
(
initial_service_state
!=
-
1
&&
initial_service_state
!=
SERVICE_RUNNING
)
{
{
...
...
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