Commit 50e79f60 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-19606: Make recv_dblwr_t::list a forward_list

parent 7d3a759d
......@@ -33,8 +33,7 @@ Created 9/20/1997 Heikki Tuuri
#include "log0log.h"
#include "mtr0types.h"
#include <list>
#include <vector>
#include <forward_list>
/** Is recv_writer_thread active? */
extern bool recv_writer_thread_active;
......@@ -159,7 +158,7 @@ struct recv_t{
struct recv_dblwr_t {
/** Add a page frame to the doublewrite recovery buffer. */
void add(byte* page) {
pages.push_back(page);
pages.push_front(page);
}
/** Find a doublewrite copy of a page.
......@@ -169,7 +168,7 @@ struct recv_dblwr_t {
@retval NULL if no page was found */
const byte* find_page(ulint space_id, ulint page_no);
typedef std::list<byte*, ut_allocator<byte*> > list;
typedef std::forward_list<byte*, ut_allocator<byte*> > list;
/** Recovered doublewrite buffer page frames */
list pages;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment