![]() - Introduce a class FTSQueryRunner to handle queries for fulltext internal tables. Basically it creates a query, prepares the fulltext internal table for read or write process. Build a tuple based on the given table and assign the FTS_CONFIG, FTS_COMMON_TABLES and FTS_AUX_TABLE fields based on the given value. This class also handles INSERT, DELETE, REPLACE, UPDATE and execute the function for each record (record_executor). FTSQueryRunner::create_query_thread(): Create a query thread to execute the statement on internal FULLTEXT tables FTSQueryRunner::build_tuple(): Build a tuple for the operation FTSQueryRunner::build_clust_ref(): Build a clustered index reference for clustered index lookup for the secondary index record FTSQueryRunner::assign_config_fields(): Assign the tuple for the FTS CONFIG internal table FTSQueryRunner::assign_common_table_fields(): Assign the tuple for FTS_DELETED, FTS_DELETED_CACHE, FTS_BEGIN_DELETED, FTS_BEGIN_DELETED_CACHE common tables FTSQueryRunner::assign_aux_table_fields(): Assign the tuple for FTS_PREFIX_INDEX tables. FTSQueryRunner::handle_error(): Handling error for DB_LOCK_WAIT, retry the operation FTSQueryRunner::open_table(): Open the table based on the fulltext auxiliary table name and FTS common table name FTSQueryRunner::prepare_for_write(): Lock the table for write process by taking Intention Exclusive lock FTSQueryRunner::prepare_for_read(): Lock the table for read process by taking Intention Shared lock FTSQueryRunner::write_record(): Insert the tuple into the given table FTSQueryRunner::lock_or_sees_rec(): Lock the record in case of DELETE, SELECT_UPDATE operation. Fetch the correct version of record in case of READ operation. It also does clustered index lookup in case of search is on secondary index fts_cmp_rec_dtuple_prefix(): Compare the record with given tuple field for tuple field length FTSQueryRunner::record_executor(): Read the record of the given index and do call the callback function for each record FTSQueryRunner::build_update_config(): Build the update vector for FULLTEXT CONFIG table FTSQueryRunner::update_record(): Update the record with update vector exist in FTSQueryRunner Removed the fts_parse_sql(), fts_eval_sql(), fts_get_select_columns_str() and fts_get_docs_clear(). Moved fts_get_table_id() & fts_get_table_name() from fts0sql.cc to fts0fts.cc and deleted the file fts0sql.cc Removed ins_graph, sel_graph from fts_index_cache_t Changed the callback function default read function parameter for each clustered index record to bool fts_sql_callback(dict_index_t*, const rec_t *, const rec_offs*, void *); Following parameters are changed to default read function parameter: fts_read_stopword() fts_fetch_store_doc_id() fts_query_expansion_fetch_doc() fts_read_count() fts_get_rows_count() fts_init_doc_id() fts_init_recover_doc() read_fts_config() fts_optimize_read_node() fts_optimize_index_fetch_node() fts_index_fetch_nodes() fts_fetch_index_words() fts_index_fetch_words() fts_fetch_doc_ids() fts_table_fetch_doc_ids() fts_read_ulint() fts_copy_doc_ids() fts_optimize_create_deleted_doc_id_snapshot() fts_query_index_fetch_nodes() fts_query_fetch_document() fts_query_index_fetch_nodes() row_upd_clust_rec_low(): Function does updates a clustered index record of a row when ordering fields don't change. Function doesn't have dependency on row_prebuilt_t. This can be used by fulltext internal table update operation Row_sel_get_clust_rec_for_mysql::operator(): Removed the parameter row_prebuilt_t and caller does pass the prebuilt related variables Removed the parser usage and execute the query directly on fulltext internal tables in the following function: fts_read_stopword() fts_fetch_store_doc_id() fts_query_expansion_fetch_doc() fts_read_count() fts_get_rows_count() fts_init_doc_id() fts_init_recover_doc() read_fts_config() fts_optimize_read_node() fts_optimize_index_fetch_node() fts_index_fetch_nodes() fts_fetch_index_words() fts_index_fetch_words() fts_fetch_doc_ids() fts_table_fetch_doc_ids() fts_read_ulint() fts_copy_doc_ids() fts_optimize_create_deleted_doc_id_snapshot() fts_query_index_fetch_nodes() fts_query_fetch_document() fts_query_index_fetch_nodes() i_s_fts_deleted_generic_fill() i_s_fts_index_table_fill_selected() |
||
---|---|---|
.github | ||
BUILD | ||
client | ||
cmake | ||
dbug | ||
debian | ||
Docs | ||
extra | ||
include | ||
libmariadb@ba712ddf96 | ||
libmysqld | ||
libservices | ||
man | ||
mysql-test | ||
mysys | ||
mysys_ssl | ||
plugin | ||
randgen/conf | ||
scripts | ||
sql | ||
sql-bench | ||
sql-common | ||
storage | ||
strings | ||
support-files | ||
tests | ||
tpool | ||
unittest | ||
vio | ||
win | ||
wsrep-lib@70cd967f5e | ||
zlib | ||
.clang-format | ||
.gitattributes | ||
.gitignore | ||
.gitlab-ci.yml | ||
.gitmodules | ||
appveyor.yml | ||
BUILD-CMAKE | ||
CMakeLists.txt | ||
CODING_STANDARDS.md | ||
config.h.cmake | ||
configure.cmake | ||
CONTRIBUTING.md | ||
COPYING | ||
CREDITS | ||
INSTALL-SOURCE | ||
INSTALL-WIN-SOURCE | ||
KNOWN_BUGS.txt | ||
README.md | ||
SECURITY.md | ||
THIRDPARTY | ||
VERSION |
Code status:
MariaDB: The innovative open source database
MariaDB was designed as a drop-in replacement of MySQL(R) with more features, new storage engines, fewer bugs, and better performance.
MariaDB is brought to you by the MariaDB Foundation and the MariaDB Corporation. Please read the CREDITS file for details about the MariaDB Foundation, and who is developing MariaDB.
MariaDB is developed by many of the original developers of MySQL who now work for the MariaDB Corporation, the MariaDB Foundation and by many people in the community.
MySQL, which is the base of MariaDB, is a product and trademark of Oracle Corporation, Inc. For a list of developers and other contributors, see the Credits appendix. You can also run 'SHOW authors' to get a list of active contributors.
A description of the MariaDB project and a manual can be found at:
https://mariadb.com/kb/en/mariadb-vs-mysql-features/
https://mariadb.com/kb/en/mariadb-versus-mysql-compatibility/
https://mariadb.com/kb/en/new-and-old-releases/
Getting the code, building it and testing it
Refer to the following guide: https://mariadb.org/get-involved/getting-started-for-developers/get-code-build-test/ which outlines how to build the source code correctly and run the MariaDB testing framework, as well as which branch to target for your contributions.
Help
More help is available from the Maria Discuss mailing list https://lists.mariadb.org/postorius/lists/discuss.lists.mariadb.org/ and MariaDB's Zulip instance, https://mariadb.zulipchat.com/
Licensing
MariaDB is specifically available only under version 2 of the GNU General Public License (GPLv2). (I.e. Without the "any later version" clause.) This is inherited from MySQL. Please see the README file in the MySQL distribution for more information.
License information can be found in the COPYING file. Third party license information can be found in the THIRDPARTY file.
Bug Reports
Bug and/or error reports regarding MariaDB should be submitted at: https://jira.mariadb.org
For reporting security vulnerabilities, see our security-policy.
The code for MariaDB, including all revision history, can be found at: https://github.com/MariaDB/server