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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
bfe2689c
Commit
bfe2689c
authored
Jul 31, 2015
by
Sergey Vojtovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-8379 - SUSE mariadb patches
Let mysql_upgrade return zero exit status when installation is up to date.
parent
360e597c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
client/mysql_upgrade.c
client/mysql_upgrade.c
+2
-1
mysql-test/t/mysql_upgrade.test
mysql-test/t/mysql_upgrade.test
+0
-1
No files found.
client/mysql_upgrade.c
View file @
bfe2689c
...
...
@@ -1061,7 +1061,7 @@ int main(int argc, char **argv)
printf
(
"This installation of MySQL is already upgraded to %s, "
"use --force if you still need to run mysql_upgrade
\n
"
,
MYSQL_SERVER_VERSION
);
die
(
NULL
)
;
goto
end
;
}
if
(
opt_version_check
&&
check_version_match
())
...
...
@@ -1084,6 +1084,7 @@ int main(int argc, char **argv)
/* Create a file indicating upgrade has been performed */
create_mysql_upgrade_info_file
();
end:
free_used_memory
();
my_end
(
my_end_arg
);
exit
(
0
);
...
...
mysql-test/t/mysql_upgrade.test
View file @
bfe2689c
...
...
@@ -14,7 +14,6 @@ file_exists $MYSQLD_DATADIR/mysql_upgrade_info;
--
echo
Run
it
again
-
should
say
already
completed
--
replace_result
$MYSQL_SERVER_VERSION
VERSION
--
error
1
--
exec
$MYSQL_UPGRADE
2
>&
1
# It should have created a file in the MySQL Servers datadir
...
...
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