[Pkg-mysql-commits] r1157 - in trunk: . debian debian/additions
Monty Taylor
mtaylor-guest at alioth.debian.org
Wed Feb 20 15:18:33 UTC 2008
Author: mtaylor-guest
Date: 2008-02-20 15:18:33 +0000 (Wed, 20 Feb 2008)
New Revision: 1157
Modified:
trunk/
trunk/debian/additions/debian-start.inc.sh
trunk/debian/additions/my.cnf
trunk/debian/changelog
Log:
deps on TeX and doxygen since that's all they were there for.
* Replaced script in check_for_crashed_tables with a myisam-recover option
and a script to trigger a check of those tables.
(thanks HarrisonF and kolbe)
Property changes on: trunk
___________________________________________________________________
Name: bzr:revision-info
- timestamp: 2008-02-18 16:32:05.828000069 -0300
committer: Monty Taylor <monty at inaugust.com>
properties:
branch-nick: trunk
+ timestamp: 2008-02-19 16:14:34.723000050 -0300
committer: Monty Taylor <monty at inaugust.com>
properties:
branch-nick: trunk
Name: bzr:revision-id:v3-trunk0
- 588 monty at inaugust.com-20071218115655-e9a3qdeanxkm37q0
589 monty at inaugust.com-20071219010144-z07rx72f4aryuxd5
590 monty at inaugust.com-20071219010251-1xj8ebk20xcavzzz
591 monty at inaugust.com-20071219133703-cfc7gcr1mfrbff5k
594 monty at inaugust.com-20071219160333-4t3d5sm5ou2cnx42
600 monty at inaugust.com-20071227231232-38mmb4bf89bai9tz
601 monty at inaugust.com-20071227231533-6u75bgvr52589l9d
602 monty at inaugust.com-20071227232516-5e1uuemjok6gax36
603 monty at inaugust.com-20071227232613-mvmphhlfm3ucfjre
604 monty at inaugust.com-20071227232728-26ik99mzw0yhq4vi
605 monty at inaugust.com-20071227234930-zlri2er7sq9obnot
606 monty at inaugust.com-20071228004201-2uib1ipksw8yeodu
607 monty at inaugust.com-20080218183922-0rfctqrxnkvqirvz
608 monty at inaugust.com-20080218184224-jq7u016hfc6gvt16
609 monty at inaugust.com-20080218191319-s202z6cpd2wkk6mx
610 monty at inaugust.com-20080218193205-41o5j3pbcsjpnwhp
+ 588 monty at inaugust.com-20071218115655-e9a3qdeanxkm37q0
589 monty at inaugust.com-20071219010144-z07rx72f4aryuxd5
590 monty at inaugust.com-20071219010251-1xj8ebk20xcavzzz
591 monty at inaugust.com-20071219133703-cfc7gcr1mfrbff5k
594 monty at inaugust.com-20071219160333-4t3d5sm5ou2cnx42
600 monty at inaugust.com-20071227231232-38mmb4bf89bai9tz
601 monty at inaugust.com-20071227231533-6u75bgvr52589l9d
602 monty at inaugust.com-20071227232516-5e1uuemjok6gax36
603 monty at inaugust.com-20071227232613-mvmphhlfm3ucfjre
604 monty at inaugust.com-20071227232728-26ik99mzw0yhq4vi
605 monty at inaugust.com-20071227234930-zlri2er7sq9obnot
606 monty at inaugust.com-20071228004201-2uib1ipksw8yeodu
607 monty at inaugust.com-20080218183922-0rfctqrxnkvqirvz
608 monty at inaugust.com-20080218184224-jq7u016hfc6gvt16
609 monty at inaugust.com-20080218191319-s202z6cpd2wkk6mx
610 monty at inaugust.com-20080218193205-41o5j3pbcsjpnwhp
611 monty at inaugust.com-20080219191434-rk81tk20rs716j21
Modified: trunk/debian/additions/debian-start.inc.sh
===================================================================
--- trunk/debian/additions/debian-start.inc.sh 2008-02-20 15:18:29 UTC (rev 1156)
+++ trunk/debian/additions/debian-start.inc.sh 2008-02-20 15:18:33 UTC (rev 1157)
@@ -11,13 +11,14 @@
set -u
# But do it in the background to not stall the boot process.
- logger -p daemon.info -i -t$0 "Checking for crashed MySQL tables."
+ logger -p daemon.info -i -t$0 "Triggering myisam-recover for all MyISAM tables"
# Checking for $? is unreliable so the size of the output is checked.
# Some table handlers like HEAP do not support CHECK TABLE.
tempfile=`tempfile`
- LC_ALL=C $MYCHECK $MYCHECK_PARAMS \
- 2>&1 \
+ LC_ALL=C $MYSQL -N -b -e 'select concat("select count(*) from ",TABLE_SCHEMA,
+ ".", TABLE_NAME) from information_schema.TABLES where ENGINE="MyISAM"' | \
+ xargs -i $MYSQL -N -q -e "{}" 2>&1 \
| perl -e '$_=join("", <>); s/^[^\n]+\n(error|note)\s+: The (handler|storage engine) for the table doesn.t support check\n//smg;print;' \
> $tempfile
if [ -s $tempfile ]; then
Modified: trunk/debian/additions/my.cnf
===================================================================
--- trunk/debian/additions/my.cnf 2008-02-20 15:18:29 UTC (rev 1156)
+++ trunk/debian/additions/my.cnf 2008-02-20 15:18:33 UTC (rev 1157)
@@ -52,6 +52,9 @@
max_allowed_packet = 16M
thread_stack = 128K
thread_cache_size = 8
+# This replaces the startup script and checks MyISAM tables if needed
+# the first time they are touched
+myisam-recover = BACKUP
#max_connections = 100
#table_cache = 64
#thread_concurrency = 10
Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog 2008-02-20 15:18:29 UTC (rev 1156)
+++ trunk/debian/changelog 2008-02-20 15:18:33 UTC (rev 1157)
@@ -2,9 +2,12 @@
* Added Sphinx SE integration
* Removed build of ndb docs, since they are not installed. Removed build
- deps on TeX and doxygen since that's all they were there for.
+ deps on TeX and doxygen since that's all they were there for.
+ * Replaced script in check_for_crashed_tables with a myisam-recover option
+ and a script to trigger a check of those tables.
+ (thanks HarrisonF and kolbe)
- -- Monty Taylor <monty at inaugust.com> Mon, 18 Feb 2008 16:31:26 -0300
+ -- Monty Taylor <mtaylor at mysql.com> Tue, 19 Feb 2008 15:32:31 -0300
mysql-dfsg-5.0 (5.0.51a-3) unstable; urgency=low
More information about the Pkg-mysql-commits
mailing list