WL#7076: Backporting wl6715 to support both formats in 5.5, 5.6, 5.7

         Backporting wl6715 to mysql-5.5
Bug #14017206 	WITH CONSISTENT SNAPSHOT DOES NOT WORK WITH ISOLATION LEVEL
SERIALIZABLE

Problem:

The documentation claims that WITH CONSISTENT SNAPSHOT will work for both
REPEATABLE READ and SERIALIZABLE isolation levels.  But it will work only
for REPEATABLE READ isolation level.  Also, the clause WITH CONSISTENT
SNAPSHOT is silently ignored when it is not applicable to the given isolation
level.  

Solution:

Generate a warning when the clause WITH CONSISTENT SNAPSHOT is ignored.

rb#2797 in review by Kevin.
Merge from mysql-5.1 to mysql-5.5
Raise version number after cloning 5.6.13
Raise version number after cloning 5.1.71
Empty version change upmerge
Empty version change upmerge
Removed directory  /usr/share/mysql/solaris/postinstall-solaris to resolve build error
Merge from mysql-5.5 to mysql-5.6
Bug #14017206 WITH CONSISTENT SNAPSHOT DOES NOT WORK WITH ISOLATION LEVEL
SERIALIZABLE

Problem:

The documentation claims that WITH CONSISTENT SNAPSHOT will work for both
REPEATABLE READ and SERIALIZABLE isolation levels.  But it will work only
for REPEATABLE READ isolation level.  Also, the clause WITH CONSISTENT
SNAPSHOT is silently ignored when it is not applicable to the given isolation
level.  

Solution:

Generate a warning when the clause WITH CONSISTENT SNAPSHOT is ignored.

rb#2797 approved by Kevin.

Note: Support team wanted to push this to 5.5+.
Null merge from mysql-5.5 to mysql-5.6
Fix Bug #16710923 - FALSE REPORTS OF DB_FOREIGN_EXCEED_MAX_CASCADE
                  
rb://2582 approved by Inaam
Merge from mysql-5.5 to mysql-5.6
Updated spec file for Bug#17080138
Bug#16083211 - DO NOT EXPLICITLY DISABLE PERSISTENT STATS WHEN RUNNING
	       IN READ ONLY MODE

Problem:
--------
Persistent stats were disabled when running in read only mode. This is
not necessary because we would never try to save the stats on disk when
running in read only mode (unless ANALYZE TABLE is ran) and fetching of
the stats from disk will work as it does not involve any modification of
on-disk data.

Fix:
----
Enabled Persistent stats for read only mode. This means we do not try to
update the persistent stats in read-only mode, but the stats data is used
if it exists.

Approved by Vasil. rb#2326
Fixed the below 2 tests in trunk and 5.6 from the Auth_sec suite to execute with the yassl builds:
1) server_withoutssl_client_withoutssl.test
2) server_withoutssl_client_withssl.test
upmerge bug 17035577 5.5 => 5.6
Bug#11748074 USE PTHREAD_ATTR_GETGUARDSIZE FOR BETTER ROBUSTNESS OF STACK THREAD SIZES
Bug#35019 Use pthread_attr_getguardsize for better robustness of stack thread sizes

Account for the extra stack guard by doing:
pthread_attr_setstacksize(&thr_attr, my_thread_stack_size + guardize);

Tested on: 
ppc64 GNU/Linux  guardize 65536
ia64 GNU/Linux   guardize 16384
x86_64 GNU/Linux guardize 4096
sun4u sparc      guardize 8192
Removed random passwords feature for Bugfix#17160741 (not applicable for 5.5.X)