Skip to content
Permalink
Browse files
MDEV-17441 - InnoDB transition to C++11 atomics
buf_pool_t::n_pend_unzip transition to Atomic_counter.
  • Loading branch information
Sergey Vojtovich committed Dec 29, 2018
1 parent 66bca0d commit e2d96e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
@@ -5939,10 +5939,10 @@ buf_page_io_complete(buf_page_t* bpage, bool dblwr, bool evict)
}

if (bpage->zip.data && uncompressed) {
my_atomic_addlint(&buf_pool->n_pend_unzip, 1);
buf_pool->n_pend_unzip++;
ibool ok = buf_zip_decompress((buf_block_t*) bpage,
FALSE);
my_atomic_addlint(&buf_pool->n_pend_unzip, ulint(-1));
buf_pool->n_pend_unzip--;

if (!ok) {
ib::info() << "Page "
@@ -2082,7 +2082,8 @@ struct buf_pool_t{
indexed by block->frame */
ulint n_pend_reads; /*!< number of pending read
operations */
ulint n_pend_unzip; /*!< number of pending decompressions */
Atomic_counter<ulint>
n_pend_unzip; /*!< number of pending decompressions */

time_t last_printout_time;
/*!< when buf_print_io was last time

0 comments on commit e2d96e8

Please sign in to comment.