Bug #29263 disabled storage engines omitted in SHOW ENGINES
Submitted: 21 Jun 2007 11:46 Modified: 8 Sep 2007 11:41
Reporter: Sergei Golubchik
Status: In progress
Category:Server: I_S Severity:S3 (Non-critical)
Version:5.1 OS:Any
Assigned to: Sergey Gluhov Target Version:5.0+
Triage: Triaged: D3 (Medium)

[21 Jun 2007 11:46] Sergei Golubchik
Description:
 [15 Jun 13:10] Jon Stephens

This is from a fresh pull, build using compile-amd64-debug-max:

mysql> SELECT VERSION();
+-------------------+
| VERSION()         |
+-------------------+
| 5.1.20-beta-debug |
+-------------------+
1 row in set (0.00 sec)

mysql> SHOW ENGINES;
+------------+---------+----------------------------------------------------------------+-

-------------+-----+------------+
| Engine     | Support | Comment                                                        |
Transactions | XA  | Savepoints |
+------------+---------+----------------------------------------------------------------+-

-------------+-----+------------+
| InnoDB     | YES     | Supports transactions, row-level locking, and foreign keys     |
YES          | YES | YES        |
| MRG_MYISAM | YES     | Collection of identical MyISAM tables                          |
NO           | NO  | NO         |
| BLACKHOLE  | YES     | /dev/null storage engine (anything you write to it disappears) |
NO           | NO  | NO         |
| CSV        | YES     | CSV storage engine                                             |
NO           | NO  | NO         |
| MEMORY     | YES     | Hash based, stored in memory, useful for temporary tables      |
NO           | NO  | NO         |
| FEDERATED  | YES     | Federated MySQL storage engine                                 |
YES          | NO  | NO         |
| ARCHIVE    | YES     | Archive storage engine                                         |
NO           | NO  | NO         |
| MyISAM     | DEFAULT | Default engine as of MySQL 3.23 with great performance         |
NO           | NO  | NO         |
+------------+---------+----------------------------------------------------------------+-

-------------+-----+------------+
8 rows in set (0.00 sec)

mysql> SELECT * FROM INFORMATION_SCHEMA.ENGINES;
+------------+---------+----------------------------------------------------------------+-

-------------+-----+------------+
| ENGINE     | SUPPORT | COMMENT                                                        |
TRANSACTIONS | XA  | SAVEPOINTS |
+------------+---------+----------------------------------------------------------------+-

-------------+-----+------------+
| InnoDB     | YES     | Supports transactions, row-level locking, and foreign keys     |
YES          | YES | YES        |
| MRG_MYISAM | YES     | Collection of identical MyISAM tables                          |
NO           | NO  | NO         |
| BLACKHOLE  | YES     | /dev/null storage engine (anything you write to it disappears) |
NO           | NO  | NO         |
| CSV        | YES     | CSV storage engine                                             |
NO           | NO  | NO         |
| MEMORY     | YES     | Hash based, stored in memory, useful for temporary tables      |
NO           | NO  | NO         |
| FEDERATED  | YES     | Federated MySQL storage engine                                 |
YES          | NO  | NO         |
| ARCHIVE    | YES     | Archive storage engine                                         |
NO           | NO  | NO         |
| MyISAM     | DEFAULT | Default engine as of MySQL 3.23 with great performance         |
NO           | NO  | NO         |
+------------+---------+----------------------------------------------------------------+-

-------------+-----+------------+
8 rows in set (0.00 sec)

I have verified that all the NDB executables were built, but where are the columns for
NDB? They should be present, and have the value DISABLED.

Were the server built without NDB support at all, then the columns should also be there,
but have the value NO.

See http://dev.mysql.com/doc/refman/5.1/en/show-engines.html

How to repeat:
see http://bugs.mysql.com/bug.php?id=27684
[6 Sep 2007 14:08] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/33803

ChangeSet@1.2578, 2007-09-06 17:02:37+05:00, gluh@mysql.com +4 -0
  Bug#29263 disabled storage engines omitted in SHOW ENGINES
  added filling of 'engines' table with disabled builtin plugins
[15 Apr 6:37] Jon Stephens
See also Bug #36068