[MDEV-6710] Embedded server fails to initialize if InnoDB plugin is used Created: 2014-09-08  Updated: 2015-01-28  Resolved: 2014-10-04

Status: Closed
Project: MariaDB Server
Component/s: Embedded Server, Storage Engine - InnoDB
Affects Version/s: 10.1.0
Fix Version/s: 10.1.1

Type: Bug Priority: Major
Reporter: Jan Lindström (Inactive) Assignee: Sergei Golubchik
Resolution: Fixed Votes: 1
Labels: None

Attachments: File embedded.diff    

 Description   

Embedded server is compiled withouth WITH_WSREP but InnoDB plugin with WITH_WSREP, this causes failure if dynamic InnoDB plugin is loaded on embedded server because of undefined symbols.



 Comments   
Comment by Jan Lindström (Inactive) [ 2014-09-09 ]

Fix for embedded server.

Comment by Jan Lindström (Inactive) [ 2014-09-09 ]

Could you please review at least server file changes diff attached on MDEV.

Comment by Nirbhay Choubey (Inactive) [ 2014-09-09 ]

IIUC, this can be resolved by having innodb plugin recompiled for 'embedded' with
WITH_WSREP undef-ed. We currently do it for xtradb :

MYSQL_ADD_PLUGIN(xtradb ${INNOBASE_SOURCES} STORAGE_ENGINE
DEFAULT
RECOMPILE_FOR_EMBEDDED
LINK_LIBRARIES ${ZLIB_LIBRARY} ${LINKER_SCRIPT})

Comment by Jan Lindström (Inactive) [ 2014-09-09 ]

True, but resulting shared library would not load to normal MariaDB server compiled by default using WITH_WSREP. I rather have one ha_innodb.so and those parts of server and/or tools that do not use galera add dummy variables/functions so that we can use the same ha_innodb.so as to normal MariaDB server.

Comment by Sergei Golubchik [ 2014-10-04 ]

fixed and pushed in 10.1

Generated at Thu Feb 08 07:14:00 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.