Commit 7bdd8b48 authored by Vasil Dimov's avatar Vasil Dimov

Fix Bug#13463493 INNODB PLUGIN WERE CHANGED, BUT STILL USE THE

SAME VERSION NUMBER 1.0.17

Now that InnoDB/InnoDB Plugin is no longer separately developed and
distributed from the MySQL server it does not need its own version number.
Thus use the MySQL version instead.

"Removing" the version altogether is not feasible because the config
variable 'innodb_version' cannot be removed in GA branches.

Reviewed by:	Marko (rb#1751)
parent 0fa867fd
2012-12-18 The InnoDB Team
* include/univ.i:
Fix Bug#Bug#13463493 INNODB PLUGIN WERE CHANGED, BUT STILL USE THE
SAME VERSION NUMBER 1.0.17
2012-12-13 The InnoDB Team 2012-12-13 The InnoDB Team
* buf/buf0buf.c: * buf/buf0buf.c:
......
...@@ -43,9 +43,12 @@ Created 1/20/1994 Heikki Tuuri ...@@ -43,9 +43,12 @@ Created 1/20/1994 Heikki Tuuri
#include "hb_univ.i" #include "hb_univ.i"
#endif /* UNIV_HOTBACKUP */ #endif /* UNIV_HOTBACKUP */
#define INNODB_VERSION_MAJOR 1 #include <mysql_version.h>
#define INNODB_VERSION_MINOR 0
#define INNODB_VERSION_BUGFIX 17 /* Set InnoDB Plugin version to be the same as the MySQL server version.
MYSQL_VERSION_ID is something like 50168. */
#define INNODB_VERSION_MAJOR (MYSQL_VERSION_ID / 10000)
#define INNODB_VERSION_MINOR (MYSQL_VERSION_ID / 100 % 100)
/* The following is the InnoDB version as shown in /* The following is the InnoDB version as shown in
SELECT plugin_version FROM information_schema.plugins; SELECT plugin_version FROM information_schema.plugins;
...@@ -56,14 +59,7 @@ component, i.e. we show M.N.P as M.N */ ...@@ -56,14 +59,7 @@ component, i.e. we show M.N.P as M.N */
#define INNODB_VERSION_SHORT \ #define INNODB_VERSION_SHORT \
(INNODB_VERSION_MAJOR << 8 | INNODB_VERSION_MINOR) (INNODB_VERSION_MAJOR << 8 | INNODB_VERSION_MINOR)
/* auxiliary macros to help creating the version as string */ #define INNODB_VERSION_STR MYSQL_SERVER_VERSION
#define __INNODB_VERSION(a, b, c) (#a "." #b "." #c)
#define _INNODB_VERSION(a, b, c) __INNODB_VERSION(a, b, c)
#define INNODB_VERSION_STR \
_INNODB_VERSION(INNODB_VERSION_MAJOR, \
INNODB_VERSION_MINOR, \
INNODB_VERSION_BUGFIX)
#define REFMAN "http://dev.mysql.com/doc/refman/5.1/en/" #define REFMAN "http://dev.mysql.com/doc/refman/5.1/en/"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment