1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-18 10:22:14 +03:00

branches/zip: Minor improvements.

buf_flush_remove(): New function, for removing a block from the flush list.
Sliced from buf_flush_write_complete().

buf_page_set_state(): Allow transitions between BUF_BLOCK_ZIP_PAGE
and BUF_BLOCK_ZIP_DIRTY.
This commit is contained in:
marko
2006-12-15 14:47:04 +00:00
parent 797822636d
commit 0fb620f58d
4 changed files with 52 additions and 17 deletions

View File

@@ -135,12 +135,7 @@ scan_again:
if (bpage->oldest_modification != 0) {
/* Remove from the flush list of modified
blocks */
bpage->oldest_modification = 0;
UT_LIST_REMOVE(list, buf_pool->flush_list,
bpage);
buf_flush_remove(bpage);
}
/* Remove from the LRU list */