Navigation Menu

Skip to content

Commit

Permalink
[rpm][deb] Ensure plugin is uninstalled
Browse files Browse the repository at this point in the history
We require all tables that use mroonga are closed to
uninstall plugin. :<
We call FLUSH TABLES for it.
  • Loading branch information
kou committed Mar 1, 2012
1 parent 2ad15db commit 317d2ae
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/debian/changelog
@@ -1,6 +1,7 @@
mroonga (2.01-1) unstable; urgency=low

* New upstream release.
* Ensure plugin is uninstalled by closing all tables use mroonga.

-- Kouhei Sutou <kou@clear-code.com> Thu, 29 Mar 2012 00:00:00 +0900

Expand Down
1 change: 1 addition & 0 deletions packages/debian/mysql-server-mroonga.postrm
Expand Up @@ -5,6 +5,7 @@ set -e
cat <<EOS | mysql --defaults-file=/etc/mysql/debian.cnf || true
DROP FUNCTION last_insert_grn_id;
UNINSTALL PLUGIN mroonga;
FLUSH TABLES;
EOS

if [ "$1" = "purge" ]; then
Expand Down
2 changes: 2 additions & 0 deletions packages/rpm/centos/mysql-mroonga.spec.in
Expand Up @@ -126,6 +126,7 @@ eval $command || \
sql="
DROP FUNCTION last_insert_grn_id;
UNINSTALL PLUGIN mroonga;
FLUSH TABLES;
"
command="/usr/bin/mysql -u root -e \"$sql\""
echo $command
Expand All @@ -147,6 +148,7 @@ eval $command || \
%changelog
* Thu Mar 29 2012 Kouhei Sutou <kou@clear-code.com> - 2.01-0
- new upstream release.
- ensure plugin is uninstalled by closing all tables use mroonga.

* Wed Feb 29 2012 Kouhei Sutou <kou@clear-code.com> - 2.00-0
- new upstream release.
Expand Down
2 changes: 2 additions & 0 deletions packages/rpm/fedora/mysql-mroonga.spec.in
Expand Up @@ -80,6 +80,7 @@ eval $command || \
sql="
DROP FUNCTION last_insert_grn_id;
UNINSTALL PLUGIN mroonga;
FLUSH TABLES;
"
command="/usr/bin/mysql -u root -e \"$sql\""
echo $command
Expand All @@ -101,6 +102,7 @@ eval $command || \
%changelog
* Thu Mar 29 2012 Kouhei Sutou <kou@clear-code.com> - 2.01-0
- new upstream release.
- ensure plugin is uninstalled by closing all tables use mroonga.

* Wed Feb 29 2012 Kouhei Sutou <kou@clear-code.com> - 2.00-0
- new upstream release.
Expand Down

0 comments on commit 317d2ae

Please sign in to comment.