diff options
author | Inaam Rana <inaam.rana@oracle.com> | 2011-12-01 09:41:52 -0500 |
---|---|---|
committer | Inaam Rana <inaam.rana@oracle.com> | 2011-12-01 09:41:52 -0500 |
commit | f22437ab503c2f5e73250210af032d66d87ff912 (patch) | |
tree | 048057279d785d3cd98cca57bc7fd5086960a319 | |
parent | 23dce762a45c634cafaeef73fefd34c0ee2f096f (diff) | |
download | mariadb-git-f22437ab503c2f5e73250210af032d66d87ff912.tar.gz |
Bug#13414773 -INNODB_FAST_SHUTDOWN=2, ASSERT STATE == BUF_BLOCK_ZIP_PAGE
We can have dirty pages during a fast shutdown. Relax the assertion.
-rw-r--r-- | storage/innodb_plugin/buf/buf0buf.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/storage/innodb_plugin/buf/buf0buf.c b/storage/innodb_plugin/buf/buf0buf.c index d88860b807b..8332727cfde 100644 --- a/storage/innodb_plugin/buf/buf0buf.c +++ b/storage/innodb_plugin/buf/buf0buf.c @@ -957,8 +957,10 @@ buf_pool_free(void) ut_ad(bpage->in_LRU_list); if (state != BUF_BLOCK_FILE_PAGE) { - /* We must not have any dirty block. */ - ut_ad(state == BUF_BLOCK_ZIP_PAGE); + /* We must not have any dirty block except + when doing a fast shutdown. */ + ut_ad(state == BUF_BLOCK_ZIP_PAGE + || srv_fast_shutdown == 2); buf_page_free_descriptor(bpage); } |