Commit graph

175274 commits

Author SHA1 Message Date
Sergei Petrunia
3ac33f8cdb MariaRocks: fix a compilation problem
rdb_cf_options.cc must be compiled with RTTI
2016-10-24 12:04:01 +00:00
Sergei Petrunia
8d8858c10a MariaRocks: trying to get the MTR tests to work
- Add include/have_rocksdb.inc (TODO: is there any way to have this
  file somewhere under storage/rocksdb/mysql-test ?)
- Make rocksdb.test require have_partition.inc because it uses
  partitioned tables
2016-10-24 10:38:18 +00:00
Sergei Petrunia
015617879a MariaRocks port: fix a typo in test_if_order_by_key()
- Off-by-one error in handler->index_flags() parameter caused
it to be called for the keypart that's after the last key part.
2016-10-24 10:35:56 +00:00
Sergei Petrunia
680a206b13 MariaRocks port: compile the needed files with -frtti
- RocksDB uses RTTI (e.g. it uses dynamic_cast)
- mysql-5.6 has RTTI enabled for the whole server, so there's no
  conflict.
- MariaDB doesn't have RTTI enabled
So the solution is to enable RTTI for
- RocksDB files
- Parts of MyRocks that interface with RocksDB features that require RTTI.

(If one just enables RTTI for all of MyRocks, they will get a
"undefined reference to `typeinfo for handler'" link error)
2016-10-23 18:28:07 +00:00
Sergei Petrunia
fd4e83eb32 MariaRocks port: update ha_rocksdb::delete_all_rows() to match the definition in class handler 2016-10-21 21:27:23 +00:00
Sergei Petrunia
e22b271b39 MariaRocks port: compilation fixes 2016-10-21 21:11:47 +00:00
Sergei Petrunia
86d963eb08 MariaRocks port: provide timeout_message()
Also, ER_LOCK_WAIT_TIMEOUT error doesn't have a string parameter
in MariaDB.
2016-10-21 20:05:40 +00:00
Sergei Petrunia
8c5912e9ee MariaRocks port: temporarily disable gap lock checking
Also provide handler::is_using_full_key
2016-10-19 14:27:43 +00:00
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