Merging with a Merge Tree
If you have a merge tree, you merge into MariaDB as follows:
MariaDB merge trees are in the mergetrees repository. Add it as a new remote:
git remote add merge https://github.com/MariaDB/mergetreesCheck out the branch you want to update and merge, for example:
git checkout merge-innodb-5.6delete everything in the branch
download the latest released source tarball, unpack it, copy files into the repository:
for InnoDB-5.6: use the content of the
storage/innobase/of the latest MySQL 5.6 source release tarball.for performance schema 5.6: use
storage/perfschema,include/mysql/psi,mysql-test/suite/perfschema, andmysql-test/suite/perfschema_stressfrom the latest MySQL 5.6 source release tarball.for SphinxSE: use
mysqlse/subdirectory from the latest Sphinx source release tarball.for XtraDB: use the content of the
storage/innobase/of the latest Percona-Server source release tarball (5.5 or 5.6 as appropriate).for pcre: simply unpack the latest pcre release source tarball into the repository, rename
pcre-X-XX/topcre.
Now
git add .,git commit(use the tarball version as a comment),git pushmerge this branch into MariaDB
Sometimes after a merge, some changes may be needed:
for performance schema 5.6: update
storage/perfschema/ha_perfschema.cc, plugin version undermaria_declare_plugin.for InnoDB-5.6: update
storage/innobase/include/univ.i, settingINNODB_VERSION_MAJOR,INNODB_VERSION_MINOR,INNODB_VERSION_BUGFIXto whatever MySQL version you were merging from.for XtraDB-5.5: update
storage/xtradb/include/univ.i, settingPERCONA_INNODB_VERSION,INNODB_VERSION_STRto whatever Percona-Server version you were merging from.for XtraDB-5.6: update
storage/xtradb/include/univ.i, settingPERCONA_INNODB_VERSION,INNODB_VERSION_MAJOR,INNODB_VERSION_MINOR,INNODB_VERSION_BUGFIXto whatever Percona-Server version you were merging from.
This page is licensed: CC BY-SA / Gnu FDL
Last updated
Was this helpful?

