Raise version number after cloning 5.5.40
Raise version number after cloning 5.6.21
Bug #19471516 SERVER CRASHES WHEN EXECUTING ALTER TABLE ADD FOREIGN KEY

Problem:

We maintain foreign keys sorted by foreign->id in an std::set object.  If
the foreign->id is to be changed, then the foreign key object must be 
removed from std::set and re-inserted.  This is necessary to maintain the
search order in the std::set object.

The root cause of the problem was identified that the search order was 
lost in the referenced_set.  This is because while renaming the table,
we didn't not refresh this referenced_set.

Solution:

When a foreign key is renamed, we must delete and re-insert into both
foreign_set and referenced_set.  

rb#6420 approved by Jimmy.
Bug #19471516 SERVER CRASHES WHEN EXECUTING ALTER TABLE ADD FOREIGN KEY

Problem:

We maintain two rb trees in each dict_table_t.  The foreign_rbt must be in
sync with foreign_list.  The referenced_rbt must be in sync with
referenced_list. There is one function which checks this consistency and it
failed, resulting in an assert failure.

The root cause of the problem was identified that the search order was 
lost in the referenced_rbt.  This is because while renaming the table,
we didn't not refresh this referenced_rbt.

Solution:

When a foreign key is renamed, we must delete and re-insert into both
foreign_rbt and referenced_rbt.  

rb#6412 approved by Jimmy.
Null merge from mysql-5.5 to mysql-5.6
Bug#19504805: COPY DEFAULT.WEEKLY FILE OF THREAD_POOL AND
              AUDIT_LOG TO FILE FROM 5.5 FROM 5.6

Null merge from 5.5 to 5.6.
Rename enterprise repo packages to commercial
Merge from 5.5 => 5.6 Rename enterprise repo packages to commercial
Renaming the enterprise packages to commercial
Bug#19506247 DTRACE SUPPORT DON'T BUILD IF COMMON BUILD -WP,OPTION WFORMAT=* IS USED

In dtrace.cmake: change pattern matching to strip off all warnings, including -Werror=xxx-xxx
but keep flags like -Wp,-D_FORTIFY_SOURCE=2
Changing the copyright headers a bit to be complaint with the standards
Null merging changes from 5.5
Update copyright text.
Merge from 5.5.
      Bug#19145712 USER AFTER FREE / DOUBLE FREE ISSUE
      
      Problem: A corrupted header length in FORMAT_DESCRIPTION_LOG_EVENT
      can cause server to crash.
      Analysis: FORMAT_DESCRIPTION_EVENT will be considered invalid if
      header len is too small (i.e. below OLD_HEADER_LEN).
      
      Format_description_log_event:: Format_description_log_event(...)
      {
        ...
        if ((common_header_len=buf[ST_COMMON_HEADER_LEN_OFFSET]) < OLD_HEADER_LEN)
          DBUG_VOID_RETURN; /* sanity check */
        ...
        post_header_len= my_memdup(...)
      }
      
      In that case Format_description_log_event constructor will return early,
      without allocating any memory for post_header_len. Thence this variable is
      left uninitialized and making server to crash when server is trying
      to free the uninitialized value.
      
      Fix: When Format_description_log_event constructor returns early, assign
      NULL to post_header_len.
Bug#19145712 USER AFTER FREE / DOUBLE FREE ISSUE

Merge from mysql-5.5
WL#7717 Expose the SSL library encryption functions to SQL

Fixed the valgrind issues.