bug#3593869-64035

A follow-up patch corrects max sizes of printed strings and changes llstr() to %lld.
Credits go to Davi who provided a great feedback.

--BZR--
revision-id: andrei.elkin@oracle.com-20120119144409-fut9w51u1pc33ouk
property-branch-nick: 5.5-bug3593869-64035-MYSQL_BINLOG_SEND-CRASH
property-file-info: ld7:file_id48:errmsgutf8.txt-20091015110028-k6y6a4bi5wlaxw53-17:message223:Max size for the whole message is 512 so a part of - like '%-.512s' should be less,
property-file-info: reduction to 320 is safe and with good chances won't cut off a part of a rather log
property-file-info: message in Last_IO_Error = 'Got fatal error 1236 ...'
property-file-info:  4:path25:sql/share/errmsg-utf8.txted7:file_id64:sp1f-sql_repl.cc-20001002032713-xqbns5ofqsaebhgi2ypcfn7nhz7nh5rp7:message28:llstr() is replaced by %lld.4:path15:sql/sql_repl.ccee
testament3-sha1: d7c9198cc3798da546380529ff2af5407cb138b3
starting 5.5.21 build

--BZR--
revision-id: mysql-re_ww@oracle.com-20120130173355-9v3ph94cmxavrr0u
property-authors: hery.ramilison@oracle
property-branch-nick: mysql-5.5
testament3-sha1: 509f12988871a1554284cde2d99476a8fc687d6f
Fix for BUG#13596377: MYSQL CRASHES ON STARTUP ON FREEBSD IN PB2

Fix for #36428/#38364 backported into 5.0.

--BZR--
revision-id: ramil@mysql.com-20120130185233-9scz43ch4orne1m6
property-branch-nick: mysql-5.0
testament3-sha1: 378eb6ea8ae21bb09e8f970c407398e9a86f68d1
Null-merge from mysql-5.0.

--BZR--
revision-id: ramil@mysql.com-20120131065712-0xrd1o9szhroqvby
property-branch-nick: mysql-5.1
testament3-sha1: 93df69ea7bd68e5252cdc730c6f54ec3f19d37ad
Auto-merge from mysql-5.1.

--BZR--
revision-id: ramil@mysql.com-20120131070031-wsae281ayx1onj7v
property-branch-nick: mysql-5.5
testament3-sha1: f7a084b13bc12d50c40a62c7570a6bf13f623ca8
Bug #64127: MTR --warnings option misses some of InnoDB errors and warnings
--BZR--
revision-id: sayantan.dutta@oracle.com-20120131113932-9s5cx4durmf8ve8s
property-branch-nick: mysql-5.1
testament3-sha1: 00432d96db3f7340d9a4154000ef6cc214624745
merge #64127 5.1 => 5.5
--BZR--
revision-id: sayantan.dutta@oracle.com-20120131115056-xf75pw7r3psizvck
property-branch-nick: mysql-5.5
testament3-sha1: 24244b980fff6cc5de7ff49b1fee8e108594cd71

--BZR--
revision-id: sayantan.dutta@oracle.com-20120131120940-cr45dsk3ad6ixs4a
property-branch-nick: mysql-5.1
testament3-sha1: d24ba996c77cc61eefa263ebf599828986dcacc1
Undo last push
--BZR--
revision-id: sayantan.dutta@oracle.com-20120131121645-id08wa6fvfrojwq7
property-branch-nick: mysql-5.5
testament3-sha1: 915e892f29abeef0d24d4ae526b1481cc4683ce3
Bug#13636122 THE ORIGINAL TABLE MISSING WHILE EXECUTE THE DDL 'ALTER TABLE ADD COLUMN

rb://914
approved by: Marko Makela

Poll in fil_rename_tablespace() after setting ::stop_ios flag can
result in a hang because the other thread actually dispatching the IO
won't wake IO helper threads or flush the tablespace before starting
wait in fil_mutex_enter_and_prepare_for_io().

--BZR--
revision-id: inaam.rana@oracle.com-20120131143131-kf918mkjn5xn6bmd
property-branch-nick: mysql-5.1
testament3-sha1: ee6c28d3b8ea3c712db991a6951394ca2db0ef4d
NULL merge from mysql-5.1

--BZR--
revision-id: inaam.rana@oracle.com-20120131143628-cyxoyki9efx9t3dp
property-branch-nick: mysql-5.5
testament3-sha1: f300726321bae2b32a470feb4d4f53d236cf2d54
bug#13636122: mysql-5.1 => mysql-5.5

--BZR--
revision-id: inaam.rana@oracle.com-20120131145017-8vo3z0bjryv8bfm6
property-branch-nick: mysql-5.5
testament3-sha1: 576e803a566748ce08e613d85cf25b0b72d82696
merge from 5.5 repo.
--BZR--
revision-id: andrei.elkin@oracle.com-20120131150744-b5ptpb3hugw8ay6x
property-branch-nick: 5.5-bug3593869-64035-MYSQL_BINLOG_SEND-CRASH
testament3-sha1: 7a94664b17e38d1e8819b01903c1413349abda13
merge from 5.5 repo.
--BZR--
revision-id: andrei.elkin@oracle.com-20120131151625-s66ef24ietw2sejm
property-branch-nick: 5.5-bug3593869-64035-MYSQL_BINLOG_SEND-CRASH
testament3-sha1: b2a5e704c329c97338b25db2130d378c4dbf8a7b
BUG#11756869 - 48848: MYISAMCHK DOING SORT RECOVER IN CERTAIN
                      CASES RESETS DATA POINTER TO SMAL

ISSUE: Myisamchk doing sort recover
       on a table reduces data_file_length.
       Maximum size of data file decreases,
       lesser number of rows are stored.

SOLUTION: Size of data_file_length is
          fixed to the original length.
--BZR--
revision-id: ashish.y.agarwal@oracle.com-20120201054953-zkhh1gfg99ja6745
property-branch-nick: bug_869_1
testament3-sha1: 25b72976ea624b648f5aaad3c3022cb2206606b6
BUG#11756869 - 48848: MYISAMCHK DOING SORT RECOVER IN CERTAIN
                      CASES RESETS DATA POINTER TO SMAL

ISSUE: Myisamchk doing sort recover
       on a table reduces data_file_length.
       Maximum size of data file decreases,
       lesser number of rows are stored.

SOLUTION: Size of data_file_length is
          fixed to the original length.
--BZR--
revision-id: ashish.y.agarwal@oracle.com-20120202084938-01166iff2agvyjub
property-branch-nick: mysql-5.1
testament3-sha1: e03f553c81ad4319e9d715a40f5f7a9864c904c9
BUG#11756869: Merge from mysql-5.1 to mysql-5.5
--BZR--
revision-id: ashish.y.agarwal@oracle.com-20120202085543-m5agl50yox9w9spe
property-branch-nick: mysql-5.5
testament3-sha1: d412766af102a27e437781cddad1d4c4f46dc81a
Suppress messages about long semaphore waits in innodb_bug34300.test.
--BZR--
revision-id: marko.makela@oracle.com-20120202100706-penzu78bhcx1eqom
property-branch-nick: mysql-5.1
testament3-sha1: 47e6277818d741dd38940d1efafe3649332d0dfd
Merge mysql-5.1 to mysql-5.5.
--BZR--
revision-id: marko.makela@oracle.com-20120202101335-jln2u3lq8cx4sn6t
property-branch-nick: mysql-5.5
testament3-sha1: 87e68d966281a9a8e4a338100dffee5591f2e45b
Bug #13651627 Move ut_ad(0) from the beginning to the end of buf_page_print(),
print page dump

buf_page_print(): Remove the ut_ad(0) from the beginning. Add two flags
(enum buf_page_print_flags) that can be bitwise-ORed together:

BUF_PAGE_PRINT_NO_CRASH:
  Do not crash debug builds at the end of buf_page_print().
BUF_PAGE_PRINT_NO_FULL:
  Do not print the full page dump. This can be useful when adding
  diagnostic printout to flushing or to the doublewrite buffer.

trx_sys_doublewrite_init_or_restore_page(): Replace exit(1) with ut_error,
so that we can get a core dump if this extraordinary condition happens.

rb:924 approved by Sunny Bains
--BZR--
revision-id: marko.makela@oracle.com-20120202103157-r8jdotfqbnt96tgv
property-branch-nick: mysql-5.5
testament3-sha1: 61a928821dae81d14e8f035204c841d3e797050b