Skip to content

Commit

Permalink
5.6.31-77.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vuvova committed Aug 10, 2016
1 parent b42664e commit 64752ac
Show file tree
Hide file tree
Showing 149 changed files with 1,631 additions and 1,564 deletions.
20 changes: 11 additions & 9 deletions storage/xtradb/btr/btr0btr.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*****************************************************************************
Copyright (c) 1994, 2015, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 1994, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2012, Facebook Inc.
This program is free software; you can redistribute it and/or modify it under
Expand Down Expand Up @@ -1122,7 +1122,7 @@ that the caller has made the reservation for free extents!
@retval block, rw_lock_x_lock_count(&block->lock) == 1 if allocation succeeded
(init_mtr == mtr, or the page was not previously freed in mtr)
@retval block (not allocated or initialized) otherwise */
static __attribute__((nonnull, warn_unused_result))
static MY_ATTRIBUTE((nonnull, warn_unused_result))
buf_block_t*
btr_page_alloc_low(
/*===============*/
Expand Down Expand Up @@ -2013,7 +2013,7 @@ IBUF_BITMAP_FREE is unaffected by reorganization.
@retval true if the operation was successful
@retval false if it is a compressed page, and recompression failed */
static __attribute__((nonnull))
static MY_ATTRIBUTE((nonnull))
bool
btr_page_reorganize_block(
/*======================*/
Expand Down Expand Up @@ -2075,7 +2075,8 @@ btr_parse_page_reorganize(
{
ulint level;

ut_ad(ptr && end_ptr);
ut_ad(ptr != NULL);
ut_ad(end_ptr != NULL);

/* If dealing with a compressed page the record has the
compression level used during original compression written in
Expand Down Expand Up @@ -2542,7 +2543,7 @@ btr_page_get_split_rec(
Returns TRUE if the insert fits on the appropriate half-page with the
chosen split_rec.
@return true if fits */
static __attribute__((nonnull(1,3,4,6), warn_unused_result))
static MY_ATTRIBUTE((nonnull(1,3,4,6), warn_unused_result))
bool
btr_page_insert_fits(
/*=================*/
Expand Down Expand Up @@ -2685,7 +2686,7 @@ btr_insert_on_non_leaf_level_func(
/**************************************************************//**
Attaches the halves of an index page on the appropriate level in an
index tree. */
static __attribute__((nonnull))
static MY_ATTRIBUTE((nonnull))
void
btr_attach_half_pages(
/*==================*/
Expand Down Expand Up @@ -2821,7 +2822,7 @@ btr_attach_half_pages(
/*************************************************************//**
Determine if a tuple is smaller than any record on the page.
@return TRUE if smaller */
static __attribute__((nonnull, warn_unused_result))
static MY_ATTRIBUTE((nonnull, warn_unused_result))
bool
btr_page_tuple_smaller(
/*===================*/
Expand Down Expand Up @@ -3397,7 +3398,7 @@ Removes a page from the level list of pages.

/*************************************************************//**
Removes a page from the level list of pages. */
static __attribute__((nonnull))
static MY_ATTRIBUTE((nonnull))
void
btr_level_list_remove_func(
/*=======================*/
Expand All @@ -3413,7 +3414,8 @@ btr_level_list_remove_func(
ulint prev_page_no;
ulint next_page_no;

ut_ad(page && mtr);
ut_ad(page != NULL);
ut_ad(mtr != NULL);
ut_ad(mtr_memo_contains_page(mtr, page, MTR_MEMO_PAGE_X_FIX));
ut_ad(space == page_get_space_id(page));
/* Get the previous and next page numbers of page */
Expand Down
16 changes: 8 additions & 8 deletions storage/xtradb/btr/btr0cur.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*****************************************************************************
Copyright (c) 1994, 2015, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 1994, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2008, Google Inc.
Copyright (c) 2012, Facebook Inc.
Expand Down Expand Up @@ -1185,7 +1185,7 @@ This has to be done either within the same mini-transaction,
or by invoking ibuf_reset_free_bits() before mtr_commit().
@return pointer to inserted record if succeed, else NULL */
static __attribute__((nonnull, warn_unused_result))
static MY_ATTRIBUTE((nonnull, warn_unused_result))
rec_t*
btr_cur_insert_if_possible(
/*=======================*/
Expand Down Expand Up @@ -1228,7 +1228,7 @@ btr_cur_insert_if_possible(
/*************************************************************//**
For an insert, checks the locks and does the undo logging if desired.
@return DB_SUCCESS, DB_WAIT_LOCK, DB_FAIL, or error number */
UNIV_INLINE __attribute__((warn_unused_result, nonnull(2,3,5,6)))
UNIV_INLINE MY_ATTRIBUTE((warn_unused_result, nonnull(2,3,5,6)))
dberr_t
btr_cur_ins_lock_and_undo(
/*======================*/
Expand Down Expand Up @@ -1782,7 +1782,7 @@ btr_cur_pessimistic_insert(
/*************************************************************//**
For an update, checks the locks and does the undo logging.
@return DB_SUCCESS, DB_WAIT_LOCK, or error number */
UNIV_INLINE __attribute__((warn_unused_result, nonnull(2,3,6,7)))
UNIV_INLINE MY_ATTRIBUTE((warn_unused_result, nonnull(2,3,6,7)))
dberr_t
btr_cur_upd_lock_and_undo(
/*======================*/
Expand All @@ -1801,7 +1801,7 @@ btr_cur_upd_lock_and_undo(
const rec_t* rec;
dberr_t err;

ut_ad(thr || (flags & BTR_NO_LOCKING_FLAG));
ut_ad((thr != NULL) || (flags & BTR_NO_LOCKING_FLAG));

if (UNIV_UNLIKELY(thr && thr_get_trx(thr)->fake_changes)) {
/* skip LOCK, UNDO */
Expand Down Expand Up @@ -3141,7 +3141,7 @@ btr_cur_del_mark_set_clust_rec(
ut_ad(page_is_leaf(page_align(rec)));

#ifdef UNIV_DEBUG
if (btr_cur_print_record_ops && thr) {
if (btr_cur_print_record_ops && (thr != NULL)) {
btr_cur_trx_report(thr_get_trx(thr)->id, index, "del mark ");
rec_print_new(stderr, rec, offsets);
}
Expand Down Expand Up @@ -3299,7 +3299,7 @@ btr_cur_del_mark_set_sec_rec(
rec = btr_cur_get_rec(cursor);

#ifdef UNIV_DEBUG
if (btr_cur_print_record_ops && thr) {
if (btr_cur_print_record_ops && (thr != NULL)) {
btr_cur_trx_report(thr_get_trx(thr)->id, cursor->index,
"del mark ");
rec_print(stderr, rec, cursor->index);
Expand Down Expand Up @@ -5209,7 +5209,7 @@ btr_free_externally_stored_field(
ulint i, /*!< in: field number of field_ref;
ignored if rec == NULL */
enum trx_rb_ctx rb_ctx, /*!< in: rollback context */
mtr_t* local_mtr __attribute__((unused))) /*!< in: mtr
mtr_t* local_mtr MY_ATTRIBUTE((unused))) /*!< in: mtr
containing the latch to data an an
X-latch to the index tree */
{
Expand Down
4 changes: 2 additions & 2 deletions storage/xtradb/btr/btr0sea.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*****************************************************************************
Copyright (c) 1996, 2012, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 1996, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2008, Google Inc.
Portions of this file contain modifications contributed and copyrighted by
Expand Down Expand Up @@ -512,7 +512,7 @@ btr_search_update_block_hash_info(
/*==============================*/
btr_search_t* info, /*!< in: search info */
buf_block_t* block, /*!< in: buffer block */
btr_cur_t* cursor __attribute__((unused)))
btr_cur_t* cursor MY_ATTRIBUTE((unused)))
/*!< in: cursor */
{
#ifdef UNIV_SYNC_DEBUG
Expand Down
6 changes: 3 additions & 3 deletions storage/xtradb/buf/buf0buddy.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*****************************************************************************
Copyright (c) 2006, 2013, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2006, 2016, Oracle and/or its affiliates. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Expand Down Expand Up @@ -112,7 +112,7 @@ buf_buddy_mem_invalid(
/**********************************************************************//**
Check if a buddy is stamped free.
@return whether the buddy is free */
UNIV_INLINE __attribute__((warn_unused_result))
UNIV_INLINE MY_ATTRIBUTE((warn_unused_result))
bool
buf_buddy_stamp_is_free(
/*====================*/
Expand Down Expand Up @@ -225,7 +225,7 @@ Checks if a buf is free i.e.: in the zip_free[].
@retval BUF_BUDDY_STATE_FREE if fully free
@retval BUF_BUDDY_STATE_USED if currently in use
@retval BUF_BUDDY_STATE_PARTIALLY_USED if partially in use. */
static __attribute__((warn_unused_result))
static MY_ATTRIBUTE((warn_unused_result))
buf_buddy_state_t
buf_buddy_is_free(
/*==============*/
Expand Down
4 changes: 2 additions & 2 deletions storage/xtradb/buf/buf0buf.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*****************************************************************************
Copyright (c) 1995, 2015, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 1995, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2008, Google Inc.
Portions of this file contain modifications contributed and copyrighted by
Expand Down Expand Up @@ -3621,7 +3621,7 @@ buf_page_init_low(

/********************************************************************//**
Inits a page to the buffer buf_pool. */
static __attribute__((nonnull))
static MY_ATTRIBUTE((nonnull))
void
buf_page_init(
/*==========*/
Expand Down
8 changes: 4 additions & 4 deletions storage/xtradb/buf/buf0dump.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*****************************************************************************
Copyright (c) 2011, 2015, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2011, 2016, Oracle and/or its affiliates. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Expand Down Expand Up @@ -105,7 +105,7 @@ SELECT variable_value FROM information_schema.global_status WHERE
variable_name = 'INNODB_BUFFER_POOL_DUMP_STATUS';
or by:
SHOW STATUS LIKE 'innodb_buffer_pool_dump_status'; */
static __attribute__((nonnull, format(printf, 2, 3)))
static MY_ATTRIBUTE((nonnull, format(printf, 2, 3)))
void
buf_dump_status(
/*============*/
Expand Down Expand Up @@ -141,7 +141,7 @@ SELECT variable_value FROM information_schema.global_status WHERE
variable_name = 'INNODB_BUFFER_POOL_LOAD_STATUS';
or by:
SHOW STATUS LIKE 'innodb_buffer_pool_load_status'; */
static __attribute__((nonnull, format(printf, 2, 3)))
static MY_ATTRIBUTE((nonnull, format(printf, 2, 3)))
void
buf_load_status(
/*============*/
Expand Down Expand Up @@ -594,7 +594,7 @@ extern "C" UNIV_INTERN
os_thread_ret_t
DECLARE_THREAD(buf_dump_thread)(
/*============================*/
void* arg __attribute__((unused))) /*!< in: a dummy parameter
void* arg MY_ATTRIBUTE((unused))) /*!< in: a dummy parameter
required by os_thread_create */
{
ut_ad(!srv_read_only_mode);
Expand Down
20 changes: 10 additions & 10 deletions storage/xtradb/buf/buf0flu.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*****************************************************************************
Copyright (c) 1995, 2015, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 1995, 2016, Oracle and/or its affiliates. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Expand Down Expand Up @@ -1488,7 +1488,7 @@ It attempts to make 'max' blocks available in the free list. Note that
it is a best effort attempt and it is not guaranteed that after a call
to this function there will be 'max' blocks in the free list.
@return number of blocks for which the write request was queued. */
__attribute__((nonnull))
MY_ATTRIBUTE((nonnull))
static
void
buf_flush_LRU_list_batch(
Expand Down Expand Up @@ -1634,7 +1634,7 @@ Whether LRU or unzip_LRU is used depends on the state of the system.
@return number of blocks for which either the write request was queued
or in case of unzip_LRU the number of blocks actually moved to the
free list */
__attribute__((nonnull))
MY_ATTRIBUTE((nonnull))
static
void
buf_do_LRU_batch(
Expand Down Expand Up @@ -1754,7 +1754,7 @@ pages: to avoid deadlocks, this function must be written so that it cannot
end up waiting for these latches! NOTE 2: in the case of a flush list flush,
the calling thread is not allowed to own any latches on pages!
@return number of blocks for which the write request was queued */
__attribute__((nonnull))
MY_ATTRIBUTE((nonnull))
static
void
buf_flush_batch(
Expand Down Expand Up @@ -1932,7 +1932,7 @@ list.
NOTE: The calling thread is not allowed to own any latches on pages!
@return true if a batch was queued successfully. false if another batch
of same type was already running. */
__attribute__((nonnull))
MY_ATTRIBUTE((nonnull))
static
bool
buf_flush_LRU(
Expand Down Expand Up @@ -2581,7 +2581,7 @@ page_cleaner_sleep_if_needed(
/*********************************************************************//**
Returns the aggregate free list length over all buffer pool instances.
@return total free list length. */
__attribute__((warn_unused_result))
MY_ATTRIBUTE((warn_unused_result))
static
ulint
buf_get_total_free_list_length(void)
Expand All @@ -2599,7 +2599,7 @@ buf_get_total_free_list_length(void)

/*********************************************************************//**
Adjust the desired page cleaner thread sleep time for LRU flushes. */
__attribute__((nonnull))
MY_ATTRIBUTE((nonnull))
static
void
page_cleaner_adapt_lru_sleep_time(
Expand Down Expand Up @@ -2638,7 +2638,7 @@ page_cleaner_adapt_lru_sleep_time(
/*********************************************************************//**
Get the desired page cleaner thread sleep time for flush list flushes.
@return desired sleep time */
__attribute__((warn_unused_result))
MY_ATTRIBUTE((warn_unused_result))
static
ulint
page_cleaner_adapt_flush_sleep_time(void)
Expand All @@ -2665,7 +2665,7 @@ extern "C" UNIV_INTERN
os_thread_ret_t
DECLARE_THREAD(buf_flush_page_cleaner_thread)(
/*==========================================*/
void* arg __attribute__((unused)))
void* arg MY_ATTRIBUTE((unused)))
/*!< in: a dummy parameter required by
os_thread_create */
{
Expand Down Expand Up @@ -2821,7 +2821,7 @@ extern "C" UNIV_INTERN
os_thread_ret_t
DECLARE_THREAD(buf_flush_lru_manager_thread)(
/*==========================================*/
void* arg __attribute__((unused)))
void* arg MY_ATTRIBUTE((unused)))
/*!< in: a dummy parameter required by
os_thread_create */
{
Expand Down
Loading

0 comments on commit 64752ac

Please sign in to comment.