Commit graph

175216 commits

Author SHA1 Message Date
Sergei Petrunia
fe0b57dfbe MariaRocks port: disable more code that synchronizes with the binlog 2016-10-19 13:16:51 +00:00
Sergei Petrunia
085fa3e4bc MariaRocks port: rli_slave is called rgi_slave in MariaDB. 2016-10-19 12:15:59 +00:00
Sergei Petrunia
e951fd17e8 MariaRocks port: make rocksdb_flush_wal() match handlerton::flush_logs definition
The original parameter comes from
commit a869c56d361bb44f46c0efeb11a8f03561676247
write/sync redo log before flushing binlog cache to file

we've already disabled some of that patch in
8cde1d449a
2016-10-19 12:00:22 +00:00
Sergei Petrunia
960fbc38d6 MariaRocks port: temporarily? disable "CONSISTENT INNODB|ROCKSDB SNAPSHOT" feature
cset
c2b8ced16e255ffdbcc1e638ac8dd4f398eb1a93
Implement START TRANSACTION WITH CONSISTENT INNODB SNAPSHOT
2016-10-17 16:53:20 +00:00
Sergei Petrunia
0a132ae7a2 MariaRocks: disable more of my_io_perf_t usage 2016-10-16 18:38:34 +00:00
Sergei Petrunia
fdf026a4ad MariaRocks port: s/my_core::thd_killed/thd_killed/ 2016-10-16 18:07:35 +00:00
Sergei Petrunia
9b78cd3cac MariaRocks port: MariaDB doesn't support SHOW ENGINE ROCKSDB TRANSACTION STATUS
Should we start supporting it?
2016-10-16 18:02:28 +00:00
Sergei Petrunia
c6dee75759 MariaRocks: MariaDB doesnt support ICP over backwards index scans yet 2016-10-16 14:34:46 +00:00
Sergei Petrunia
54295beee2 MariaRocks port: compare_key_icp() is called compare_key2() in MariaDB 2016-10-16 14:28:22 +00:00
Sergei Petrunia
8cde1d449a MariaRocks port: disable thd_store_lsn() call
It is from "write/sync redo log before flushing binlog cache to file"
feature that MariaDB doesn't have (or need?)
2016-10-16 14:16:58 +00:00
Sergei Petrunia
1dead2d213 MariaRocks port: MariaDB has no "ASYNC_COMMIT" feature
adjust a few function definitions accordingly
2016-10-16 14:06:25 +00:00
Sergei Petrunia
e43ce18597 MariaRocks port: use correct path in CMakeLists.txt 2016-10-16 12:45:53 +00:00
Sergei Petrunia
27adea907b MariaRocks port: temporarily disable rdb_collation_exceptions
Then Regex_list_handler is not needed and we don't have to backport
it right now.
2016-10-16 12:30:51 +00:00
Sergei Petrunia
7eef3de1ae MariaRocks port: In MariaDB, there's no Field_longlong::PACK_LENGTH
And the code in ha_rocksdb.cc makes assumptions about hidden pk length
being 8, anyway.
2016-10-16 11:56:14 +00:00
Sergei Petrunia
b42248d2f2 MyRocks port: make Field::char_length() a const function 2016-10-16 11:39:55 +00:00
Sergei Petrunia
a7091b0679 Temporarily disable Read-Free replication in MariaRocks, part#2
(Squash with 4be8cae56a)
2016-10-16 11:17:19 +00:00
Sergei Petrunia
d26283458c MariaRocks port: make key_restore() parameter const 2016-10-16 11:01:01 +00:00
Sergei Petrunia
274e5be194 MariaRocks: port my_hash_const_element
"Add new function my_hash_const_element(), the const equivalent of
my_hash_element()" - comes from facebook/mysql-5.6,
7c869d34b9fa2262b941efd6363a260b7c37948f
2016-10-16 11:00:07 +00:00
Sergei Petrunia
f456532c62 MariaRocks port: compile RocksDB with -frtti.
Probably this is not the right way to do it, see the comment
2016-10-15 21:20:52 +00:00
Sergei Petrunia
01a5216b9c MariaRocks port: temporarily? disable Per-table Extra Stats
(why are table reads/writes/updates collected in ha_statistics?
this structure was intended for table statistics that the engine
reports.. and now it is also used for engine-agnostic statistics
like rows_read, rows_requested, etc?)
2016-10-15 20:58:15 +00:00
Sergei Petrunia
746f35d6f3 MariaRocks: Disable FlashCache support
Flashcache is available only in WebScaleSQL (not in MySQL or MariaDB).
2016-10-10 18:54:43 +00:00
Sergei Petrunia
0c5823ab9e MariaRocks port: mysql_bin_log_is_open -> mysql_bin_log.is_open 2016-10-09 18:22:23 +00:00
Sergei Petrunia
06b4962fc4 MariaRocks port: db_low_byte_first is gone in MariaDB 2016-10-09 18:11:00 +00:00
Sergei Petrunia
08f96d21fd MariaRocks: add DB_TYPE_ROCKSDB into legacy_db_type enum 2016-10-09 18:01:39 +00:00
Sergei Petrunia
2770e8004d MariaRocks: remove ha_statistic_increment calls
They have been replaced with increment_statistics() calls made
by handler::ha_XXX() methods.
2016-10-09 17:52:01 +00:00
Sergei Petrunia
3af9986289 MariaRocks port: dir_entry has number_of_files with one 'f' in MariaDB 2016-10-09 17:30:16 +00:00
Sergei Petrunia
a06faac248 Temporarily disable the fix for WebScaleSQL Issue #108.
Issue #108: Index-only scans do not work for partitioned tables and extended keys
c1f1f0b64eaecd132fc6ec21663faf0510afacaf
2016-10-09 17:24:01 +00:00
Sergei Petrunia
50f323683a Add a temporary stand-in for abort_with_stack_traces() call 2016-10-09 17:20:11 +00:00
Sergei Petrunia
f4994c7872 MDEV-10975: Merging of @@rocksdb_skip_unique_check: Part #1
Leave the code in, but #ifdef it away to avoid compilation
error
2016-10-09 17:03:31 +00:00
Sergei Petrunia
d3cd64fda9 In MariaDB, KEY::actual_key_parts is named ext_key_parts 2016-10-09 16:03:39 +00:00
Sergei Petrunia
84dd64702a Fix compilation failure in rdb_perf_context.h
Rdb_atomic_perf_counters uses my_io_perf_atomic_struct
which uses atomic_stat from include/atomic_stat.h
which was backported in the previous cset.
2016-10-09 16:02:13 +00:00
Sergei Petrunia
20bd26e6df Backport from facebook/mysql-5.6:
commit b5fda565d4bad66f3b5a6432236b96743ccfd323
Author: Steaphan Greene <steaphan@fb.com>
Date:   Fri Feb 7 21:34:04 2014 -0800

    Add basic atomic_stats type

    Summary:
    WebScaleSQL Feature: Basic Stats Support

    This is a simple class template that implements an atomic stats variable.

    The focus is on performance, not accuracy.  No set operations are
    guaranteed.  The other operations are all atomic, so values should not
    actually be lost - however, there is no attempt to be consistent in
    reading multiple stats, nor any concern that different threads see any
    consistent view across multiple stats.

    Test Plan:
    This has been tested quite a bit in isolation, and no problems have been
    found.  However, this has never been used in production.  Also, a newer,
    more sophisticated, version of this is already in development.

    It also shows a small perf gain in the larger stats diffs (Table Stats,
    User Stats, etc...), when compared to the built-in MySQL atomics.

    Reviewers: pivanof

    Reviewed By: pivanof

    CC: jtolmer, MarkCallaghan, flamingcow, jeremycole, andrew-ford, inaam-rana, liang.guo.752

    Differential Revision: https://reviews.facebook.net/D16029
    Differential Revision: https://reviews.facebook.net/D16449
2016-10-09 15:27:22 +00:00
Sergei Petrunia
4be8cae56a Temporarily disable Read-Free replication in MariaRocks 2016-10-09 14:39:00 +00:00
Sergei Petrunia
272c05df56 Temporarily (?) disable read-free replication in MariaRocks 2016-10-09 13:02:48 +00:00
Sergei Petrunia
d4f6c77ccc Temporarily (?) disable table statistics updates 2016-10-09 12:59:40 +00:00
Sergei Petrunia
7c3affdcc0 Add #include <my_config.h> at the start of every .cc file 2016-10-09 12:36:58 +00:00
Sergei Petrunia
a482f2221d Fix MariaRocks build (unfinished)
Got to the point where we fail when compiling MyRocks files.
2016-10-07 08:25:10 +00:00
Sergei Petrunia
be33178833 Add rocksdb submodule 2016-10-06 17:46:44 +00:00
Sergei Petrunia
c680acd6a3 Merge remote-tracking branch 'mergetrees/merge-myrocks' into bb-10.2-mariarocks 2016-10-06 17:31:12 +00:00
Sergei Petrunia
ebfc4e6ad0 Initial commit,
copy of
commit 86587affafe77ef555f7c3839839de44f0f203f3
Author: Tian Xia <tianx@fb.com>
Date:   Tue Oct 4 10:01:52 2016 -0700

    Allow filtering of show commands through admission control
2016-10-06 17:24:09 +00:00
Georg Richter
00fc86f1af Remove test for using bash characters in tls/ssl file and directory names.
bash char substitution is not supported for other file options (e.g. read default file)
2016-10-06 12:31:23 +02:00
Monty
14b1c8c80d After merge and bug fixes
- Fixed compiler warnings
- Removed have_debug.inc from innochecksum_3
- Fixed race condition in innodb_buffer_pool_load
- Fixed merge issue in innodb-bad-key-change.test
- Fixed missing array allocation that could cause
  function_defaults_notembedded to fail
- Fixed thread_cache_size_func
2016-10-05 01:11:08 +03:00
Monty
af7490f95d Remove end . from error messages to get them consistent
Fixed a few failing tests
2016-10-05 01:11:08 +03:00
Monty
c1125c3218 Fixed compiler warnings and failing tests 2016-10-05 01:11:08 +03:00
Monty
7b96416f3c Use sql_mode_t for sql_mode.
This fixed several cases where we where using just ulong for sql_mode
2016-10-05 01:11:08 +03:00
Monty
8be53a389c MDEV-6112 multiple triggers per table
This is similar to MysQL Worklog 3253, but with
a different implementation. The disk format and
SQL syntax is identical with MySQL 5.7.

Fetures supported:
- "Any" ammount of any trigger
- Supports FOLLOWS and PRECEDES to be
  able to put triggers in a certain execution order.

Implementation details:
- Class Trigger added to hold information about a trigger.
  Before this trigger information was stored in a set of lists in
  Table_triggers_list and in Table_triggers_list::bodies
- Each Trigger has a next field that poinst to the next Trigger with the
  same action and time.
- When accessing a trigger, we now always access all linked triggers
- The list are now only used to load and save trigger files.
- MySQL trigger test case (trigger_wl3253) added and we execute these
  identically.
- Even more gracefully handling of wrong trigger files than before. This
  is useful if a trigger file uses functions or syntax not provided by
  the server.
- Each trigger now has a "Created" field that shows when the trigger was
  created, with 2 decimals.

Other comments:
- Many of the changes in test files was done because of the new "Created"
  field in the trigger file. This shows up in SHOW ... TRIGGER and when
  using information_schema.trigger.
- Don't check if all memory is released if on uses --gdb;  This is needed
  to be able to get a list from safemalloc of not freed memory while
  debugging.
- Added option to trim_whitespace() to know how many prefix characters
  was skipped.
- Changed a few ulonglong sql_mode to sql_mode_t, to find some wrong usage
  of sql_mode.
2016-10-05 01:11:07 +03:00
Sergei Golubchik
0bae1957dd simplify the ipv6 check 2016-10-04 16:25:12 +02:00
Daniel Black
70dcb46e98 MDEV-9185: fix ipv6 detection test in MTR
Signed-off-by: Daniel Black <daniel.black@au.ibm.com>
2016-10-04 16:09:46 +02:00
Jan Lindström
4f919beeda Enable Geometry datatype for SPATIAL indexes and disable online
index creation for SPATIAL indexes.
2016-10-03 19:54:23 +03:00
Jan Lindström
9e70d88d67 Disable wl6560. 2016-10-03 19:29:46 +03:00