MDEV-4674: Port daemon_memcached plugin to MariaDB (GSoC 2015) #126
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is the result of my Google Summer of Code 2015 project (see a detailed project proposal here).
I have squashed everything into one commit and rebased it on the top of 10.2 branch. If you are interested in details of my changes over the MySQL version of the plugin, you can find commit history with detailed messages here: https://github.com/piotrjurkiewicz/mariadb-server/commits/10.1-memcached
You can also take a look on the final report from my project: https://lists.launchpad.net/maria-developers/msg08868.html
Since the final report I have introduced the following changes:
dlsym()
(if using dynamically linked InnoDB engine plugin), instead using special purpose field in handlerton structure, this method works both with xtradb and innodb_plugin (see this commit piotrjurkiewicz/mariadb-server@0596ee1)Unfortunately, after rebasing on the top of 10.2 branch I noticed that two tests (daemon_memcached.mysql_rpl_1 and daemon_memcached.mysql_rpl_2) started to fail. When daemon_memcached_engine_ib tries to write to the binlog, the server crashes because
table->rpl_write_set
is NULL.I think that it is somehow related to this commit 8bd5301, but I don't know where and how this should be fixed. The same daemon_memcached_engine_ib binlog writing code works fine with MySQL.