summaryrefslogtreecommitdiff
path: root/storage/cassandra
Commit message (Collapse)AuthorAgeFilesLines
* Merge 10.2 into 10.3Marko Mäkelä2019-05-142-2/+2
|\
| * Merge 10.1 into 10.2Marko Mäkelä2019-05-132-2/+2
| |\
| | * Merge branch '5.5' into 10.1Vicențiu Ciorbaru2019-05-112-2/+2
| | |
* | | post-merge: -Werror fixes in 10.3Sergei Golubchik2019-03-292-3/+3
| | |
* | | remove obsolete checks for -fno-implicit-templatesSergei Golubchik2018-08-121-1/+0
| | | | | | | | | | | | we stopped using -fno-implicit-templates many years ago
* | | Added name to MEM_ROOT for esier debuggingMonty2018-02-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will make it easier to how memory allocation is done when debugging with either DBUG or gdb. Will especially help when debugging stored procedures Main change is a name argument as second argument to init_alloc_root() init_sql_alloc() Other things: - Added DBUG_ENTER/EXIT to some Virtual_tmp_table functions
* | | Changing field::field_name and Item::name to LEX_CSTRINGMonty2017-04-231-19/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Benefits of this patch: - Removed a lot of calls to strlen(), especially for field_string - Strings generated by parser are now const strings, less chance of accidently changing a string - Removed a lot of calls with LEX_STRING as parameter (changed to pointer) - More uniform code - Item::name_length was not kept up to date. Now fixed - Several bugs found and fixed (Access to null pointers, access of freed memory, wrong arguments to printf like functions) - Removed a lot of casts from (const char*) to (char*) Changes: - This caused some ABI changes - lex_string_set now uses LEX_CSTRING - Some fucntions are now taking const char* instead of char* - Create_field::change and after changed to LEX_CSTRING - handler::connect_string, comment and engine_name() changed to LEX_CSTRING - Checked printf() related calls to find bugs. Found and fixed several errors in old code. - A lot of changes from LEX_STRING to LEX_CSTRING, especially related to parsing and events. - Some changes from LEX_STRING and LEX_STRING & to LEX_CSTRING* - Some changes for char* to const char* - Added printf argument checking for my_snprintf() - Introduced null_clex_str, star_clex_string, temp_lex_str to simplify code - Added item_empty_name and item_used_name to be able to distingush between items that was given an empty name and items that was not given a name This is used in sql_yacc.yy to know when to give an item a name. - select table_name."*' is not anymore same as table_name.* - removed not used function Item::rename() - Added comparision of item->name_length before some calls to my_strcasecmp() to speed up comparison - Moved Item_sp_variable::make_field() from item.h to item.cc - Some minimal code changes to avoid copying to const char * - Fixed wrong error message in wsrep_mysql_parse() - Fixed wrong code in find_field_in_natural_join() where real_item() was set when it shouldn't - ER_ERROR_ON_RENAME was used with extra arguments. - Removed some (wrong) ER_OUTOFMEMORY, as alloc_root will already give the error. TODO: - Check possible unsafe casts in plugin/auth_examples/qa_auth_interface.c - Change code to not modify LEX_CSTRING for database name (as part of lower_case_table_names)
* | | Fixed wrong prototype in ha_cassandra.cc that broke linkingMonty2017-04-191-1/+1
|/ /
* | Merge branch '10.1' into 10.2Sergei Golubchik2017-03-302-2/+2
|\ \ | |/
| * Correct FSF addressiangilfillan2017-03-102-2/+2
| |
* | MDEV-6284: Remove CMakeLists.txt hack that mangled the server install fileOtto Kekäläinen2016-10-271-1/+0
|/ | | | | | For Debian the rules file is the main makefile and assuming that a upstream makefile will mangle the Debian packaging files creates false alerts from static analysis tools and other problems.
* Merge branch '10.0' into 10.1Sergei Golubchik2015-12-211-2/+2
|\
| * MDEV-6662: possible bug in cassandra_se.ccSergei Petrunia2015-12-101-2/+2
| | | | | | | | | | | | Fix the trivial problem: we were modifying function's arguments, not member variables. There is no testcase as this can't be easily checked from MTR.
| * Backport from 10.1 to 10.0: Merge pull request #33 from k0da/mdev-7839Sergei Petrunia2015-03-251-1/+1
| | | | | | | | Fix BigEndian build for Cassandra SE
* | Fixed failing tests and compiler warningsMonty2015-08-181-1/+1
| | | | | | | | - UNINIT_VAR() was required for 4.8.3 on openSUSE 13.2
* | Fix BigEndian buildDinar Valeev2015-03-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On BigEndian build fails with: [ 109s] /home/abuild/rpmbuild/BUILD/mariadb-10.0.17/storage/cassandra/ha_cassandra.cc:890:22: error: invalid conversion from 'longlong* {aka long long int*} ' to 'long long int' [-fpermissive] [ 109s] value->x.long_value= (longlong *)*cass_data; [ 109s] ^ This commit fixes it Signed-off-by: Dinar Valeev <dvaleev@suse.com>
* | followup for "MDEV-6248 GUI-friendly cmake options to enable/disable plugins"Sergei Golubchik2015-02-151-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | Remove ONLY_IF clause in MYSQL_ADD_PLUGIN and the requirement that every plugin's CMakeLists.txt *must* do MYSQL_ADD_PLUGIN for PLUGIN_XXX=YES to work. This was very fragile and cannot be relied on. Use a different implementation of =YES check - iterate all PLUGIN_* variables and see which one doesn't have a matching target. Revert all ONLY_IF changes in CMakeLists.txt files.
* | Merge branch '10.0' into bb-10.1-mergeSergei Golubchik2014-12-021-0/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: .bzrignore VERSION cmake/plugin.cmake debian/dist/Debian/control debian/dist/Ubuntu/control mysql-test/r/join_outer.result mysql-test/r/join_outer_jcl6.result mysql-test/r/null.result mysql-test/r/old-mode.result mysql-test/r/union.result mysql-test/t/join_outer.test mysql-test/t/null.test mysql-test/t/old-mode.test mysql-test/t/union.test packaging/rpm-oel/mysql.spec.in scripts/mysql_config.sh sql/ha_ndbcluster.cc sql/ha_ndbcluster_binlog.cc sql/ha_ndbcluster_cond.cc sql/item_cmpfunc.h sql/lock.cc sql/sql_select.cc sql/sql_show.cc sql/sql_update.cc sql/sql_yacc.yy storage/innobase/buf/buf0flu.cc storage/innobase/fil/fil0fil.cc storage/innobase/include/srv0srv.h storage/innobase/lock/lock0lock.cc storage/tokudb/CMakeLists.txt storage/xtradb/buf/buf0flu.cc storage/xtradb/fil/fil0fil.cc storage/xtradb/include/srv0srv.h storage/xtradb/lock/lock0lock.cc support-files/mysql.spec.sh
| * compilation failure: ha_cassandraSergei Golubchik2014-10-111-0/+1
| |
* | deb hack: don't set CASSANDRA_DEB_FILES unless cassandra can be builtSergei Golubchik2014-06-291-1/+3
| |
* | MDEV-6248 GUI-friendly cmake options to enable/disable pluginsSergei Golubchik2014-06-231-26/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Introduce a set of PLUGIN_xxx cmake options with values NO, STATIC, DYNAMIC, AUTO, YES (abort if plugin is not compiled) * Deprecate redundant and ambiguous WITH_xxx, WITH_PLUGIN_xxx, WITH_xxx_STORAGE_ENGINE, WITHOUT_xxx, WITHOUT_PLUGIN_xxx, WITHOUT_xxx_STORAGE_ENGINE * Actually check whether a plugin is disabled (DISABLED keyword was always present, but it was ignored until now). * Support conditionally disabled plugins - keyword ONLY_IF * Use ONLY_IF for conditionally skipping plugins, instead of doing MYSQL_ADD_PLUGIN conditionally as before. Because if MYSQL_ADD_PLUGIN isn't done at all, PLUGIN_xxx=YES cannot work.
* | cmake GUI cleanupSergei Golubchik2014-06-231-0/+3
|/ | | | | | | | | | | | | mark path-related variables (AIO_LIBRARY, ODBC_LIBRARY, ODBC_INCLUDE_DIR, Thrift_LIBS, Thrift_INCLUDE_DIRS, CRYPTO_LIBRARY, OPENSSL_LIBRARIES, OPENSSL_ROOT_DIR, OPENSSL_INCLUDE_DIR) as advanced - paths are automatically discovered by cmake. mark few choice variables (ENABLED_LOCAL_INFILE, WITHOUT_SERVER, DISABLE_SHARED) as not advanced - they are user choices, not automatically configured values. remove unused BACKUP_TEST variable.
* MDEV-5404 Can't free data returned by mariadb_dyncol_unpack on windowsSergei Golubchik2014-03-191-10/+3
| | | | add mariadb_dyncol_unpack_free()
* MDEV-4243 [PATCH] Warnings/errors while compiling with clangSergei Golubchik2013-11-283-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | fix the code to compile with clang. fix warnings too. include/probes_mysql_nodtrace.h: clang++ doesn't like numeric _constants_ being used in || (it suspects that the intention was | ). Boolean constants are ok. sql/hostname.cc: only used in DBUG_ASSERT sql/item.cc: str_to_time and str_to_datetime return bool, not MYSQL_TIMESTAMP_xxx sql/item_func.cc: str_to_datetime_with_warn() returns bool, not MYSQL_TIMESTAMP_xxx storage/cassandra/CMakeLists.txt: CMAKE_CXX_FLAGS can be empty storage/connect/odbconn.cpp: HWND is void* storage/connect/user_connect.h: deprecated on FreeBSD and unused anyway storage/connect/value.cpp: bad characters inside. unused. storage/spider/spd_trx.cc: clang++ warns that memset will also overwrite vtbl. it might be as well a good idea, as it asserts that the object will only be used as a storage. silence the warning.
* simplify CMakeLists.txt for cassandra/connect enginesSergei Golubchik2013-09-252-16/+0
| | | | | | | now, if the dynamic plugin puts itself in a distinct component, then * ${plugin}.cnf file is generated and installed automatically * a separate RPM is generated automatically * necessary FILELIST/PROVIDES/OBSOLETES/REQUIRES are filled in automatically
* 10.0-monty mergeSergei Golubchik2013-07-211-2/+2
|\ | | | | | | | | | | | | | | includes: * remove some remnants of "Bug#14521864: MYSQL 5.1 TO 5.5 BUGS PARTITIONING" * introduce LOCK_share, now LOCK_ha_data is strictly for engines * rea_create_table() always creates .par file (even in "frm-only" mode) * fix a 5.6 bug, temp file leak on dummy ALTER TABLE
| * Cassandra SE build fix for merge.unknown2013-06-171-1/+1
| |
| * Applied all changes from Igor and SanjaMichael Widenius2013-06-151-1/+1
| |
* | MDEV-4469 Fedora18 MariaDB-connect-engine packages are incorrectly asserting ↵Sergei Golubchik2013-06-091-4/+4
| | | | | | | | | | | | ownership of /usr/lib and /usr/lib64 connect/cassandra rpm settins were completely ignored
* | MDEV-4001: Cassandra: server crashes in ha_cassandra::end_bulk_insert on ↵Sergey Petrunya2013-05-281-0/+6
| | | | | | | | | | | | | | INSERT .. SELECT with a non-existing column - INSERT ... SELECT may call handler->end_bulk_insert() without having called handler->start_bulk_insert(). Let Cassandra SE handle this.
* | MDEV-4443: Cassandra SE: ERROR 1928 (HY000): Internal error: 'Thrift ↵Sergey Petrunya2013-05-283-18/+86
| | | | | | | | | | | | | | | | exception: Called write on non-open socket' - Made call re-try system also handle network disconnects (it will reconnect before retrying) - Added Cassandra_network_exceptions counter. - @@cassandra_failure_retries is now always honored.
* | MDEV-4000: Mapping between Cassandra blob (BytesType) and MySQL BLOB does ↵Sergey Petrunya2013-05-201-0/+1
| | | | | | | | | | | | not work - Allow SQL blobs in the data mapping.
* | ha_cassandra.so and ha_oqgraph.so can be build only if boost is installedAlexander Barkov2013-04-254-13/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | on the build machine. So put them into the deb packages optionally. Additionally, fixing cassandra/CMakeLists.txt to work with thrift installed in /opt/local and /opt. It was supposed to work, but did not work actually. Only thrift installed in /usr or /usr/local worked. renamed: debian/dist/Debian/mariadb-server-10.0.files => debian/dist/Debian/mariadb-server-10.0.files.in debian/dist/Ubuntu/mariadb-server-10.0.files => debian/dist/Ubuntu/mariadb-server-10.0.files.in modified: .bzrignore CMakeLists.txt storage/cassandra/CMakeLists.txt storage/cassandra/cassandra_se.cc storage/cassandra/gen-cpp/Cassandra.h storage/cassandra/gen-cpp/cassandra_types.h storage/oqgraph/CMakeLists.txt debian/dist/Debian/mariadb-server-10.0.files.in debian/dist/Ubuntu/mariadb-server-10.0.files.in
* | Packaging clean-ups for the cassandra and connect engines.Alexander Barkov2013-04-211-8/+7
| | | | | | | | | | | | | | | | | | | | | | modified: @ storage/cassandra/CMakeLists.txt Renaming the package "CassandraSE" to "cassandra-engine", as agreed during Lisbon meeting. @ storage/connect/CMakeLists.txt Removing an unused line
* | 10.0-base mergeSergei Golubchik2013-04-152-22/+7
|\ \ | |/ |/|
| * put status variables in the proper pluginname_ scopeSergei Golubchik2013-04-091-7/+7
| | | | | | | | | | (but support the scopeless mysql style too). always output status/system variables in the correct lettercase
| * * move bas_ext from the handler to the handlertonSergei Golubchik2013-04-072-15/+0
| | | | | | | | * provide a default bas_ext value of the empty list
* | MDEV-3997: Querying a Cassandra table on a server with query cache enabled ↵Sergey Petrunya2013-02-041-0/+14
| | | | | | | | | | | | is likely to cause problems - Disable query cache for Cassandra tables.
* | 10.0-base mergeSergei Golubchik2013-01-312-4/+4
|/
* move cassandra-related code from cmake/cpack_rpm.cmakeSergei Golubchik2013-01-291-0/+12
| | | | to storage/cassandra/CMakeLists.txt
* buildbot fixes for storage/cassandra/CMakeLists.txtSergei Golubchik2013-01-291-5/+12
| | | | | | | | storage/cassandra/CMakeLists.txt: more thourough CHECK_CXX_SOURCE_COMPILES test, that checks whether boost::shared_ptr can work with --fno-rtti don't install anything in INSTALL_SYSCONFDIR, if the latter is unset
* fix ha_cassandra to compileSergei Golubchik2013-01-241-3/+3
|
* cleanup: remove unused init_dynamic_array and init_dynamic_array2 symbols,Sergei Golubchik2013-01-231-2/+2
| | | | | as only my_init_dynamic_array and my_init_dynamic_array2 are used everywhere. fix ha_cassandra to compile.
* MDEV-3931 Cassandra SE packagingJani Tolonen2013-01-232-32/+51
| | | | | Added autodetection for thrift library and includes Added Cassandra Storage Engine rpm
* Make cassandra not built by defaultunknown2013-01-101-2/+8
|
* Make cassandra module and do not load it by default.unknown2013-01-101-1/+1
|
* MDEV-4005 fix.unknown2013-01-091-1/+2
| | | | | Field matching fixed. DBUG_ASSERT fixed.
* Post-merge fixes:Sergey Petrunya2012-12-242-2/+2
| | | | - update ha_cassandra::start_bulk_insert() definition to match those in class handler.
* pre-mergeunknown2012-12-231-4/+4
|
* backport to 5.5 dyncol changes and names supportunknown2012-12-233-107/+142
|