null+****@clear*****
null+****@clear*****
2012年 3月 1日 (木) 18:35:01 JST
Kouhei Sutou 2012-03-01 18:35:01 +0900 (Thu, 01 Mar 2012)
New Revision: 317d2ae91dfe038ea03062ff7fcf56789a06fd3d
Log:
[rpm][deb] Ensure plugin is uninstalled
We require all tables that use mroonga are closed to
uninstall plugin. :<
We call FLUSH TABLES for it.
Modified files:
packages/debian/changelog
packages/debian/mysql-server-mroonga.postrm
packages/rpm/centos/mysql-mroonga.spec.in
packages/rpm/fedora/mysql-mroonga.spec.in
Modified: packages/debian/changelog (+1 -0)
===================================================================
--- packages/debian/changelog 2012-03-01 17:51:06 +0900 (0a5bd9b)
+++ packages/debian/changelog 2012-03-01 18:35:01 +0900 (31d26b4)
@@ -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*****> Thu, 29 Mar 2012 00:00:00 +0900
Modified: packages/debian/mysql-server-mroonga.postrm (+1 -0)
===================================================================
--- packages/debian/mysql-server-mroonga.postrm 2012-03-01 17:51:06 +0900 (d8f6317)
+++ packages/debian/mysql-server-mroonga.postrm 2012-03-01 18:35:01 +0900 (4621c18)
@@ -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
Modified: packages/rpm/centos/mysql-mroonga.spec.in (+2 -0)
===================================================================
--- packages/rpm/centos/mysql-mroonga.spec.in 2012-03-01 17:51:06 +0900 (2820359)
+++ packages/rpm/centos/mysql-mroonga.spec.in 2012-03-01 18:35:01 +0900 (b7190a7)
@@ -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
@@ -147,6 +148,7 @@ eval $command || \
%changelog
* Thu Mar 29 2012 Kouhei Sutou <kou****@clear*****> - 2.01-0
- new upstream release.
+- ensure plugin is uninstalled by closing all tables use mroonga.
* Wed Feb 29 2012 Kouhei Sutou <kou****@clear*****> - 2.00-0
- new upstream release.
Modified: packages/rpm/fedora/mysql-mroonga.spec.in (+2 -0)
===================================================================
--- packages/rpm/fedora/mysql-mroonga.spec.in 2012-03-01 17:51:06 +0900 (eda3855)
+++ packages/rpm/fedora/mysql-mroonga.spec.in 2012-03-01 18:35:01 +0900 (ea6ccd8)
@@ -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
@@ -101,6 +102,7 @@ eval $command || \
%changelog
* Thu Mar 29 2012 Kouhei Sutou <kou****@clear*****> - 2.01-0
- new upstream release.
+- ensure plugin is uninstalled by closing all tables use mroonga.
* Wed Feb 29 2012 Kouhei Sutou <kou****@clear*****> - 2.00-0
- new upstream release.