Dinar Valeev
71bbff8de3
Fix BigEndian build
...
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>
2015-03-25 17:21:52 +01:00
Jan Lindström
3578419b77
MDEV-7797: file_key_management_plugin uses static IV for a key
...
Currently crypt data is written to file space always. Use
that to obtain random IV for every object (file).
Beatify code to confort InnoDB coding styles.
Conflicts:
storage/innobase/fil/fil0crypt.cc
storage/xtradb/fil/fil0crypt.cc
2015-03-20 13:09:07 +02:00
Jan Lindström
b3438f24a1
MDEV-7803: Encryption metadata (crypt_data) is written to InnoDB file space page 0 even when encryption is not enabled
2015-03-19 14:09:49 +02:00
Jan Lindström
bab0bdbb5c
Introduce two debug crash points while writing crypt data to test
...
redo operations.
2015-03-19 07:13:07 +02:00
Sergey Vojtovich
4cb86b79dd
MDEV-7728 - Improve xid cache scalability by using lock-free hash
...
Spider support for new xid cache implementation.
2015-03-16 19:07:52 +04:00
Sergey Vojtovich
18e9c314e4
MDEV-6650 - LINT_INIT emits code in non-debug builds
...
Replaced all references to LINT_INIT with UNINIT_VAR and LINT_INIT_STRUCT.
Removed LINT_INIT macro.
2015-03-16 14:48:22 +04:00
Jan Lindström
c4b268add0
InnoDB cleanup. Remove empty statements i.e. extra ; characters.
2015-03-16 09:14:13 +02:00
Jan Lindström
4d0e52189c
MDEV-7770: Online DDL progress output contains incorrectly printed index names
...
Index names were not formatted correctly.
2015-03-13 09:38:08 +02:00
Jan Lindström
9f4ee16bf3
MDEV-7619: Improve long semaphore wait output
...
Add holder thread_id, file_name and line to output.
2015-03-11 07:31:57 +02:00
Jan Lindström
c8035da9b8
Add more information if page state is not correct.
2015-03-10 14:05:57 +02:00
Sergei Golubchik
20cacb0064
fix a crash of innodb.innodb_mutexes,innodb_plugin
...
add forgotten initialization of the mutex name
2015-03-07 13:27:49 +01:00
Sergei Golubchik
2db62f686e
Merge branch '10.0' into 10.1
2015-03-07 13:21:02 +01:00
Sergei Golubchik
d61573d3e5
fix connect.json_udf test for static builds
2015-03-06 20:49:48 +01:00
Sergei Golubchik
5f510a9175
Merge branch '5.5' into 10.0
2015-03-06 18:41:32 +01:00
Sergei Golubchik
17a37796e1
after innodb/xtradb merge: use the correct visibility for internal functions
...
otherwise innodb plugin might invoke xtradb function with the same name,
and that might crash (./mtr --emb innodb.strict_mode)
2015-03-06 18:13:06 +01:00
Jan Lindström
206b111b11
MDEV-7672: Crash creating an InnoDB table with foreign keys
...
Analysis: after a red-black-tree lookup we use node withouth
checking did lookup succeed or not. This lead to situation
where NULL-pointer was used.
Fix: Add additional check that found node from red-back-tree
is valid.
2015-03-06 11:19:23 +02:00
Sergey Vojtovich
e13459a11e
MDEV-7148 - Recurring: InnoDB: Failing assertion: !lock->recursive
...
Re-applied lost in the merge revision:
commit ed313e8a92
Author: Sergey Vojtovich <svoj@mariadb.org>
Date: Mon Dec 1 14:58:29 2014 +0400
MDEV-7148 - Recurring: InnoDB: Failing assertion: !lock->recursive
On PPC64 high-loaded server may crash due to assertion failure in InnoDB
rwlocks code.
This happened because load order between "recursive" and "writer_thread"
wasn't properly enforced.
2015-03-05 15:30:11 +04:00
Jan Lindström
f66fbe8ce0
MDEV-7578 :Slave is ~10x slower to execute set of statements compared to master when using RBR
...
Analysis: On master when executing (single/multi) row INSERTs/REPLACEs
InnoDB fallback to old style autoinc locks (table locks)
only if another transaction has already acquired the AUTOINC lock.
Instead on slave as we are executing log_events and sql_command
is not correctly set, InnoDB does not use new style autoinc
locks when it could.
Fix: Use new style autoinc locks also when
thd_sql_command(user_thd) == SQLCOM_END i.e. this is RBR event.
2015-03-05 12:05:59 +02:00
Jan Lindström
143f5d9172
MDEV-7061: Augment innochecksum to give insight of fragmentation
...
Merged 615dd07d90
from https://github.com/facebook/mysql-5.6/
authored by rongrong. Removed C++11 requirement by using
std::map instead of std::unordered_set.
Add analysis to leaf pages to estimate how fragmented an index is
and how much benefit we can get out of defragmentation.
2015-03-04 16:57:31 +02:00
Sergei Golubchik
e33b48ae8b
Merge remote-tracking branch 'origin/10.0' into 10.0
2015-03-02 16:47:43 +01:00
Sergei Golubchik
c06c465a96
10.0-connect merge
2015-03-02 16:45:44 +01:00
Jan Lindström
7047bef1ef
Use standard InnoDB error mechanism on compression and encryption
...
error messages.
2015-03-02 10:55:48 +02:00
Olivier Bertrand
b9a9b82f9e
- Make json_udf test work on Windows
...
modified:
storage/connect/mysql-test/connect/t/json_udf.inc
2015-03-02 00:35:56 +01:00
Olivier Bertrand
5f4909b31d
- Making json_udf test working on linux
...
added:
storage/connect/mysql-test/connect/t/json_udf.inc
modified:
storage/connect/mysql-test/connect/r/json_udf.result
storage/connect/mysql-test/connect/t/json_udf.test
2015-03-01 23:55:09 +01:00
Olivier Bertrand
34c89597ef
- Remove a signed/unsigned warning.
...
modified:
storage/connect/jsonudf.cpp
2015-03-01 19:29:56 +01:00
Olivier Bertrand
5c8862ee19
- Fix crash when Json_Value was called without arguments.
...
Correct memory calculation in Serialize.
Correct some UDF's messages.
Add and modify the json tests
removed:
storage/connect/mysql-test/connect/std_data/biblio.jsn
storage/connect/mysql-test/connect/std_data/expense.jsn
storage/connect/mysql-test/connect/std_data/mulexp3.jsn
storage/connect/mysql-test/connect/std_data/mulexp4.jsn
storage/connect/mysql-test/connect/std_data/mulexp5.jsn
added:
storage/connect/mysql-test/connect/r/json_udf.result
storage/connect/mysql-test/connect/std_data/biblio.json
storage/connect/mysql-test/connect/std_data/expense.json
storage/connect/mysql-test/connect/std_data/mulexp3.json
storage/connect/mysql-test/connect/std_data/mulexp4.json
storage/connect/mysql-test/connect/std_data/mulexp5.json
storage/connect/mysql-test/connect/t/json_udf.test
modified:
storage/connect/json.cpp
storage/connect/jsonudf.cpp
storage/connect/mysql-test/connect/r/json.result
storage/connect/mysql-test/connect/t/json.test
2015-03-01 19:20:40 +01:00
Sergei Golubchik
c3f80a2bff
fix new innodb warnings to use the standard innodb warning syntax
2015-03-01 16:53:31 +01:00
Olivier Bertrand
d862d7c049
- Implement random access to ODBC tables
...
modified:
storage/connect/odbconn.cpp
storage/connect/odbconn.h
- Fix get proper length of ODBC DECIMAL column in discovery
modified:
storage/connect/ha_connect.cc
storage/connect/mysql-test/connect/r/odbc_oracle.result
- Implement random access to JSON tables
modified:
storage/connect/tabjson.cpp
storage/connect/tabjson.h
- Fix MDEV-7636
modified:
storage/connect/tabutil.cpp
2015-02-28 23:01:55 +01:00
Sergei Golubchik
fa87fc733d
update tokudb version after merge
2015-02-27 18:28:40 +01:00
Alexander Barkov
72d7b12b9c
Reducing duplicate code and simplifying well formed string copying
...
by adding a new class String_copier.
This is a pre-requisite patch for MDEV-6566 and MDEV-6572,
to avoid adding more similar code.
2015-02-27 16:26:12 +04:00
Jan Lindström
2eae6848d9
MDEV-7572: InnoDB: Assertion failure in log_init_crypt_key if
...
file_key_management_plugin is used
Fixed error handling and added disabling InnoDB redo log encryption
if encryption key management plugin is not there.
2015-02-26 10:17:23 +02:00
Olivier Bertrand
aa107ef3ab
- FIX assert failure when sorting JSON tables
...
modified:
storage/connect/tabjson.cpp
storage/connect/tabjson.h
2015-02-25 11:59:00 +01:00
Olivier Bertrand
e027f5e8d5
- Fix MDEV-7616 by adding SQLCOM_SET_OPTION to the accepted command list.
...
modified:
storage/connect/ha_connect.cc
- Add new JSON UDF functions and JSON functionalities.
modified:
storage/connect/json.cpp
storage/connect/json.h
storage/connect/jsonudf.cpp
storage/connect/tabjson.cpp
2015-02-24 23:18:04 +01:00
Sergei Golubchik
6c09a72af5
Merge remote-tracking branch 'origin/10.0' into 10.0
2015-02-24 20:52:37 +01:00
Sergei Golubchik
73033e5e1a
fix mroonga to compile w/o performance schema
2015-02-24 15:54:59 +01:00
Sergei Golubchik
723be51678
Merge
2015-02-24 14:17:00 +01:00
Jan Lindström
8799f87075
MDEV-7623: Add lock wait time and hold time to every record/table lock in
...
InnoDB transaction lock printout.
2015-02-24 10:33:49 +02:00
Jan Lindström
90635c6fb5
MDEV-7620: Transaction lock wait is missing number of lock
...
waits and total wait time.
2015-02-23 11:24:19 +02:00
Sergei Golubchik
f2cb45daf3
Merge remote-tracking branch 'origin/10.0' into 10.0
2015-02-22 21:45:24 +01:00
Olivier Bertrand
a736e63f7c
- Add new Json UDF's Json_Array_Add, Json_Array_Grp and Json_Object_Grp.
...
Handle longjmp's raised during json processing.
modified:
storage/connect/global.h
storage/connect/ha_connect.cc
storage/connect/json.cpp
storage/connect/jsonudf.cpp
- Fix wrong references to the suppressed g->Trace variables.
modified:
storage/connect/global.h
storage/connect/plugutil.c
storage/connect/tabjson.cpp
storage/connect/tabodbc.cpp
2015-02-22 17:53:02 +01:00
Jan Lindström
1cc7befc14
MDEV-7109: Add support for INFORMATION_SCHEMA.INNODB_SEMAPHORE_WAITS
...
MDEV-7399: Add support for INFORMATION_SCHEMA.INNODB_MUTEXES
MDEV-7618: Improve semaphore instrumentation
Introduced two new information schema tables to monitor mutex waits
and semaphore waits. Added a new configuration variable
innodb_intrument_semaphores to add thread_id, file name and
line of current holder of mutex/rw_lock.
2015-02-21 21:45:16 +02:00
Sergei Golubchik
77e6e74a26
merge 10.0-spider
2015-02-19 22:05:33 +01:00
Jan Lindström
9152b83973
Merged from 10.0-FusionIO:
...
Added support for compression method snappy for page compression.
2015-02-19 17:42:18 +02:00
Kentoku SHIBA
cf3b51b1d5
Merge Spider 3.2.18
2015-02-20 00:41:26 +09:00
Sergei Golubchik
c1ebb4a60f
compiler warnings in spider
2015-02-19 11:28:03 +01:00
Sergei Golubchik
16c01c7004
after merge: fix mroonga to compile and pass its tests
2015-02-19 10:26:52 +01:00
Sergei Golubchik
da637137ba
merge 10.0-mroonga
2015-02-19 09:57:34 +01:00
Sergei Golubchik
56114a416f
merge 10.0-connect
2015-02-19 09:37:11 +01:00
Olivier Bertrand
d9175f3822
- Remove GCC warnings
...
modified:
storage/connect/jsonudf.cpp
storage/connect/tabutil.h
2015-02-19 01:25:31 +01:00
Olivier Bertrand
564d41faf4
- Work on JSON and JSON UDF's
...
modified:
storage/connect/json.cpp
storage/connect/jsonudf.cpp
storage/connect/tabjson.cpp
- CntReadNext: Enable EvalColumns for longjmp
modified:
storage/connect/connect.cc
2015-02-19 00:59:02 +01:00