mariadb/include
Michael Widenius ff205b25d5 Fixed assert in perfschema/pfs.cc::start_idle_wait_v1 when using performance schema and big packets in debug version.
The bug was that my_real_read() called net_before_header_psi() multiple times for long packets.
Fixed by adding a flag when we are reading a header.
Did also some cleanups to interface of my_net_read() to avoid unnecessary calls if performance schema is not used.

- Added my_net_read_packet() as a replacement for my_net_read(). my_net_read() is still in the client library for old clients.
- Removed THD->m_server_idle (not needed anymore as this is now given as argument to my_net_read_packet()
- Added my_net_read_packet(), which is a new version of my_net_read() with a new parameter if we are doing a read for a new command from the server.
- Added tests for compressed protocol and big packets





include/mysql.h.pp:
  Added my_net_read_packet() as a replacement for my_net_read()
include/mysql_com.h:
  Added my_net_read_packet() as a replacement for my_net_read()
mysql-test/r/mysql_client_test_comp.result:
  New test
mysql-test/t/mysql_client_test-master.opt:
  Added max_allowed_packet to be able to test big packets and packet size overflows.
mysql-test/t/mysql_client_test_comp-master.opt:
  New test
mysql-test/t/mysql_client_test_nonblock-master.opt:
  Added max_allowed_packet to be able to test big packets and packet size overflows.
sql-common/client.c:
  Use my_net_read_packet()
sql/mf_iocache.cc:
  Use my_net_read_packet()
sql/mysqld.cc:
  Removed THD->m_server_idle (not needed anymore as this is now given as argument to my_net_read_packet()
sql/net_serv.cc:
  Added argument to my_real_read() to indicte if we are reading the first block of the next statement and should call performance schema.
  Added 'compatibilty function' my_net_read().
  Added my_net_read_packet(), which is a new version of my_net_read() with a new parameter if we are doing a read for a new command from the server.
sql/sql_class.cc:
  Removed m_server_idle (not needed anymore)
sql/sql_class.h:
  Removed m_server_idle (not needed anymore)
sql/sql_parse.cc:
  Removed m_server_idle (not needed anymore)
tests/mysql_client_test.c:
  Added tests for compressed protocol and big packets
2014-07-19 13:38:40 +03:00
..
atomic MDEV-5766 - my_atomic_load does memory writes 2014-03-07 11:43:06 +04:00
mysql perfschema 5.6.17 2014-05-07 16:12:16 +02:00
base64.h Merging TO_BASE64() and FROM_BASE64() from MySQL-5.6 2013-09-23 18:58:33 +04:00
big_endian.h Temporary commit of 10.0-merge 2013-03-26 00:03:13 +02:00
byte_order_generic.h Temporary commit of 10.0-merge 2013-03-26 00:03:13 +02:00
byte_order_generic_x86.h Temporary commit of 10.0-merge 2013-03-26 00:03:13 +02:00
byte_order_generic_x86_64.h Temporary commit of 10.0-merge 2013-03-26 00:03:13 +02:00
CMakeLists.txt merge 10-base->10.0 2013-11-11 23:40:53 +02:00
decimal.h 5.2 merge 2014-03-16 21:03:01 +01:00
errmsg.h 5.5.38 merge 2014-06-06 00:07:27 +02:00
ft_global.h mysql-5.1.73 merge 2014-03-15 18:24:15 +01:00
handler_ername.h Fix for MDEV-5547: Bad error message when moving very old .frm files to MariaDB 5.5. 2014-01-22 15:16:57 +02:00
handler_state.h Fix for MDEV-533: Confusing error code when doing auto-increment insert for out-of-range values 2012-09-18 15:14:19 +03:00
hash.h MDEV-5675 - Performance: my_hash_sort_bin is called too often 2014-03-06 16:19:12 +04:00
heap.h 5.5 merge 2014-03-26 22:25:38 +01:00
keycache.h 5.1 merge 2014-03-16 13:59:44 +01:00
lf.h cleanup: remove LF_REQUIRE_PINS, use compile_time_assert() instead of reimplementing it 2013-06-24 20:56:55 +02:00
little_endian.h Temporary commit of 10.0-merge 2013-03-26 00:03:13 +02:00
m_ctype.h 5.2 merge 2014-03-16 21:03:01 +01:00
m_string.h 5.2 merge 2014-03-16 21:03:01 +01:00
ma_dyncol.h MDEV-5404 Can't free data returned by mariadb_dyncol_unpack on windows 2014-03-19 09:58:18 +01:00
maria.h MDEV-5314 - Compiling fails on OSX using clang 2014-02-19 14:05:15 +04:00
my_aes.h Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
my_alarm.h 5.3 merge 2012-01-13 15:50:02 +01:00
my_alloc.h mysql-5.1.73 merge 2014-03-15 18:24:15 +01:00
my_atomic.h mysql-5.5.18 merge 2011-11-03 19:17:05 +01:00
my_attribute.h 5.1 merge 2014-03-16 13:59:44 +01:00
my_base.h merge of "BUG#18233051 - FTS: FAILING ASSERTION: NUM_TOKEN < MAX_PROXIMITY_ITEM" 2014-05-07 22:36:40 +02:00
my_bit.h merge with 5.3 2011-10-19 21:45:18 +02:00
my_bitmap.h Fixes to get valgrind to work with jemalloc 2014-01-02 11:19:19 +02:00
my_byteorder.h Temporary commit of 10.0-merge 2013-03-26 00:03:13 +02:00
my_check_opt.h 5.5 merge 2014-02-01 00:54:03 +01:00
my_compare.h 5.2 merge 2014-03-16 21:03:01 +01:00
my_compiler.h mysql-5.1.73 merge 2014-03-15 18:24:15 +01:00
my_context.h 10.0-base merge 2013-07-18 16:46:57 +02:00
my_dbug.h MDEV-26: Global transaction ID. 2013-03-26 14:44:27 +01:00
my_decimal_limits.h 5.3 merge 2012-01-13 15:50:02 +01:00
my_default.h Temporary commit of 10.0-merge 2013-03-26 00:03:13 +02:00
my_dir.h 5.2 merge 2014-03-16 21:03:01 +01:00
my_getopt.h 10.0-base merge 2014-02-26 15:28:07 +01:00
my_global.h Merge 5.3->5.5 2014-06-04 21:53:15 +04:00
my_handler_errors.h merge of "BUG#18233051 - FTS: FAILING ASSERTION: NUM_TOKEN < MAX_PROXIMITY_ITEM" 2014-05-07 22:36:40 +02:00
my_libwrap.h Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
my_list.h Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
my_md5.h 10.0-monty merge 2013-07-21 16:39:19 +02:00
my_net.h 10.0-base merge 2014-02-26 15:28:07 +01:00
my_nosys.h Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
my_pthread.h 5.2 merge 2014-03-16 21:03:01 +01:00
my_rdtsc.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_rnd.h Temporary commit of 10.0-merge 2013-03-26 00:03:13 +02:00
my_stacktrace.h Define dummy my_init_stacktrace() to allow one to call it without #ifdef HAVE_STACKTRACE 2012-04-03 15:48:56 +03:00
my_sys.h Revert revision sergii@pisem.net-20130123151853-xc6i3l11aqv0iykk 2014-03-26 22:26:13 +01:00
my_time.h 5.5.38 merge 2014-06-06 00:07:27 +02:00
my_tree.h 5.2 merge 2014-03-16 21:03:01 +01:00
my_uctype.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_user.h support DEFINER=role and DEFINER=current_role 2013-10-18 12:17:49 -07:00
my_valgrind.h 10.0-base merge 2014-02-26 15:28:07 +01:00
my_xml.h MDEV-4928 Merge collation customization improvements 2013-10-02 15:04:07 +04:00
myisam.h 10.0-base merge 2014-02-26 15:28:07 +01:00
myisamchk.h 5.5 merge 2014-02-01 00:54:03 +01:00
myisammrg.h fix merge.test: online alter table support for MERGE tables, really 2013-07-11 18:57:11 +02:00
myisampack.h mysql-5.1.73 merge 2014-03-15 18:24:15 +01:00
mysql.h Client attributes 2013-10-03 18:00:44 +03:00
mysql.h.pp Fixed assert in perfschema/pfs.cc::start_idle_wait_v1 when using performance schema and big packets in debug version. 2014-07-19 13:38:40 +03:00
mysql_async.h MDEV-3802: Millisecond timeout support in non-blocking client library + fix incorrect blocking. 2012-10-12 11:00:01 +02:00
mysql_com.h Fixed assert in perfschema/pfs.cc::start_idle_wait_v1 when using performance schema and big packets in debug version. 2014-07-19 13:38:40 +03:00
mysql_com_server.h Next part of merge. See TODO for details 2012-08-14 17:23:34 +03:00
mysql_embed.h 5.3 merge 2012-01-13 15:50:02 +01:00
mysql_time.h 10.0-base merge 2013-07-18 16:46:57 +02:00
mysql_version.h.in mysql-5.5.37 selective merge 2014-03-27 22:26:58 +01:00
mysqld_default_groups.h MDEV-4068 rpm scriptlet chown command dangerous 2013-03-06 09:32:13 +01:00
mysys_err.h 5.3 merge 2012-01-13 15:50:02 +01:00
password.h Do the partial merge of WL#5602 correctly: 2013-12-09 12:38:02 +01:00
probes_mysql.d.base Updated/added copyright headers 2011-06-30 17:46:53 +02:00
probes_mysql.h more portable fix for lp:942266 - 5.5 builds fail with systemtap-sdt-dev installed on Ubuntu 2012-05-11 09:18:00 +02:00
probes_mysql_nodtrace.h MDEV-4243 [PATCH] Warnings/errors while compiling with clang 2013-11-28 22:35:59 +01:00
queues.h MDEV-4984: Implement MASTER_GTID_WAIT() and @@LAST_GTID. 2014-02-07 19:15:28 +01:00
rijndael.h Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
service_versions.h MroongaSE: addint thd_autoinc and thd_error_context plugin services 2013-12-12 19:18:49 +04:00
sha1.h SHA1 service 2013-07-13 17:48:06 +02:00
sha2.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sql_common.h 5.2 merge 2014-03-16 21:03:01 +01:00
sslopt-case.h Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
sslopt-longopts.h Next part of merge. See TODO for details 2012-08-14 17:23:34 +03:00
sslopt-vars.h Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
t_ctype.h Updated/added copyright header. Added line "use is subject to license terms" 2014-02-17 18:19:04 +05:30
thr_alarm.h 5.2 merge 2014-03-16 21:03:01 +01:00
thr_lock.h Merge with 5.2. 2011-12-11 11:34:44 +02:00
thread_pool_priv.h 10.0-monty merge 2013-07-21 16:39:19 +02:00
typelib.h mysql-5.1.73 merge 2014-03-15 18:24:15 +01:00
violite.h mysql-5.1.73 merge 2014-03-15 18:24:15 +01:00
waiting_threads.h use PSI wrappers in aria and other non-MySQL code 2011-07-13 21:10:18 +02:00
welcome_copyright_notice.h mysql-5.1.73 merge 2014-03-15 18:24:15 +01:00
wqueue.h fix the include guards and add missing gplv2 headers 2012-02-17 12:19:38 +01:00