#At file:///home/marko/innobase/dev/mysql2a/5.6-innodb/ based on revid:marko.makela@stripped3uh9qp015wle
3270 Marko Mäkelä 2010-10-21
Remove unused constant BUF_FLUSH_SINGLE_PAGE.
This also removes two printouts " single page 0".
modified:
storage/innobase/buf/buf0buf.c
storage/innobase/include/buf0buf.ic
storage/innobase/include/buf0types.h
=== modified file 'storage/innobase/buf/buf0buf.c'
--- a/storage/innobase/buf/buf0buf.c revid:marko.makela@oracle.com-20101021075006-elz43uh9qp015wle
+++ b/storage/innobase/buf/buf0buf.c revid:marko.makela@stripped021080318-5baog5z7a1o0q90j
@@ -4583,7 +4583,6 @@ buf_pool_validate_instance(
buf_page_t* b;
buf_chunk_t* chunk;
ulint i;
- ulint n_single_flush = 0;
ulint n_lru_flush = 0;
ulint n_list_flush = 0;
ulint n_lru = 0;
@@ -4655,9 +4654,6 @@ buf_pool_validate_instance(
case BUF_FLUSH_LIST:
n_list_flush++;
break;
- case BUF_FLUSH_SINGLE_PAGE:
- n_single_flush++;
- break;
default:
ut_error;
}
@@ -4747,9 +4743,6 @@ buf_pool_validate_instance(
case BUF_FLUSH_LIST:
n_list_flush++;
break;
- case BUF_FLUSH_SINGLE_PAGE:
- n_single_flush++;
- break;
default:
ut_error;
}
@@ -4795,7 +4788,6 @@ buf_pool_validate_instance(
ut_error;
}
- ut_a(buf_pool->n_flush[BUF_FLUSH_SINGLE_PAGE] == n_single_flush);
ut_a(buf_pool->n_flush[BUF_FLUSH_LIST] == n_list_flush);
ut_a(buf_pool->n_flush[BUF_FLUSH_LRU] == n_lru_flush);
@@ -4865,7 +4857,7 @@ buf_print_instance(
"modified database pages %lu\n"
"n pending decompressions %lu\n"
"n pending reads %lu\n"
- "n pending flush LRU %lu list %lu single page %lu\n"
+ "n pending flush LRU %lu list %lu\n"
"pages made young %lu, not young %lu\n"
"pages read %lu, created %lu, written %lu\n",
(ulong) size,
@@ -4876,7 +4868,6 @@ buf_print_instance(
(ulong) buf_pool->n_pend_reads,
(ulong) buf_pool->n_flush[BUF_FLUSH_LRU],
(ulong) buf_pool->n_flush[BUF_FLUSH_LIST],
- (ulong) buf_pool->n_flush[BUF_FLUSH_SINGLE_PAGE],
(ulong) buf_pool->stat.n_pages_made_young,
(ulong) buf_pool->stat.n_pages_not_made_young,
(ulong) buf_pool->stat.n_pages_read,
@@ -5102,8 +5093,7 @@ buf_get_n_pending_ios(void)
pend_ios +=
buf_pool->n_pend_reads
+ buf_pool->n_flush[BUF_FLUSH_LRU]
- + buf_pool->n_flush[BUF_FLUSH_LIST]
- + buf_pool->n_flush[BUF_FLUSH_SINGLE_PAGE];
+ + buf_pool->n_flush[BUF_FLUSH_LIST];
}
return(pend_ios);
@@ -5157,7 +5147,7 @@ buf_print_io_instance(
"Old database pages %lu\n"
"Modified db pages %lu\n"
"Pending reads %lu\n"
- "Pending writes: LRU %lu, flush list %lu, single page %lu\n",
+ "Pending writes: LRU %lu, flush list %lu\n",
(ulong) buf_pool->curr_size,
(ulong) UT_LIST_GET_LEN(buf_pool->free),
(ulong) UT_LIST_GET_LEN(buf_pool->LRU),
@@ -5167,8 +5157,7 @@ buf_print_io_instance(
(ulong) buf_pool->n_flush[BUF_FLUSH_LRU]
+ buf_pool->init_flush[BUF_FLUSH_LRU],
(ulong) buf_pool->n_flush[BUF_FLUSH_LIST]
- + buf_pool->init_flush[BUF_FLUSH_LIST],
- (ulong) buf_pool->n_flush[BUF_FLUSH_SINGLE_PAGE]);
+ + buf_pool->init_flush[BUF_FLUSH_LIST]);
buf_flush_list_mutex_exit(buf_pool);
@@ -5343,8 +5332,7 @@ buf_pool_check_no_pending_io(void)
pending_io += buf_pool->n_pend_reads
+ buf_pool->n_flush[BUF_FLUSH_LRU]
- + buf_pool->n_flush[BUF_FLUSH_LIST]
- + buf_pool->n_flush[BUF_FLUSH_SINGLE_PAGE];
+ + buf_pool->n_flush[BUF_FLUSH_LIST];
}
=== modified file 'storage/innobase/include/buf0buf.ic'
--- a/storage/innobase/include/buf0buf.ic revid:marko.makela@stripped75006-elz43uh9qp015wle
+++ b/storage/innobase/include/buf0buf.ic revid:marko.makela@strippedg5z7a1o0q90j
@@ -301,7 +301,6 @@ buf_page_get_flush_type(
#ifdef UNIV_DEBUG
switch (flush_type) {
case BUF_FLUSH_LRU:
- case BUF_FLUSH_SINGLE_PAGE:
case BUF_FLUSH_LIST:
return(flush_type);
case BUF_FLUSH_N_TYPES:
=== modified file 'storage/innobase/include/buf0types.h'
--- a/storage/innobase/include/buf0types.h revid:marko.makela@stripped
+++ b/storage/innobase/include/buf0types.h revid:marko.makela@oracle.com-20101021080318-5baog5z7a1o0q90j
@@ -45,7 +45,6 @@ typedef byte buf_frame_t;
/** Flags for flush types */
enum buf_flush {
BUF_FLUSH_LRU = 0, /*!< flush via the LRU list */
- BUF_FLUSH_SINGLE_PAGE, /*!< flush a single page */
BUF_FLUSH_LIST, /*!< flush via the flush list
of dirty blocks */
BUF_FLUSH_N_TYPES /*!< index of last element + 1 */
Attachment: [text/bzr-bundle] bzr/marko.makela@oracle.com-20101021080318-5baog5z7a1o0q90j.bundle
| Thread |
|---|
| • bzr commit into mysql-trunk-innodb branch (marko.makela:3270) | marko.makela | 21 Oct |