Bug #23255 Missing version parameter in plugin declaration example
Submitted: 13 Oct 2006 11:13 Modified: 24 Jan 2007 15:18
Reporter: Dominik Hiltbrunner Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:5.1.13-beta OS:Linux (FC 3 (any))
Assigned to: Sergey Vojtovich CPU Architecture:Any
Tags: example, fulltext, plugin

[13 Oct 2006 11:13] Dominik Hiltbrunner
Description:
In the file src/plugin/fulltext/plugin_example.c (Rev 1.13) the license parameter is missing in the plugin library descriptor.

How to repeat:
Run the fulltext plugin example and you'll notice that the deinit function is called on startup instead of the init method.

Suggested fix:
Insert one of the following license values:
PLUGIN_LICENSE_PROPRIETARY
PLUGIN_LICENSE_GPL
PLUGIN_LICENSE_BSD
in the plugin library descriptor before init function declaration.
[26 Oct 2006 21:10] Sveta Smirnova
Thank you for the report.

But what the wrong with the code? It is same as in the manual (http://dev.mysql.com/doc/refman/5.1/en/plugin-api-type-specific.html)
[27 Oct 2006 8:16] Sergei Golubchik
by the way, the comment for 'license' field in plugin.h is wrong
[27 Oct 2006 8:16] Sergei Golubchik
and MYSQL_PLUGIN_INTERFACE_VERSION wasn't changed either (must be 0x0100 now)
[27 Oct 2006 13:55] Dominik Hiltbrunner
Right, I changed the MYSQL_PLUGIN_INTERFACE_VERSION also, but I've forgotten to report that.
[5 Dec 2006 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/16455

ChangeSet@1.2372, 2006-12-05 18:05:53+04:00, svoj@mysql.com +1 -0
  BUG#23255 - Missing version parameter in plugin declaration example
  
  Plugin interface version was not raised properly after incompatible
  changes to plugin structure were introduced.
  
  Fixed plugin interface version according to worklog 2761.
[27 Dec 2006 0:13] Antony Curtis
Pushed to 5.1.15-beta repository
[24 Jan 2007 15:18] Paul DuBois
I've also added a license member to the structure
where it is shown in the 5.1 manual, so that it
corresponds to the code changes.