MiniOB 1
MiniOB is one mini database, helping developers to learn how database works.
|
BufferPool的管理类 更多...
#include <disk_buffer_pool.h>
Public 成员函数 | |
BufferPoolManager (int memory_size=0) | |
RC | create_file (const char *file_name) |
RC | open_file (const char *file_name, DiskBufferPool *&bp) |
RC | close_file (const char *file_name) |
RC | flush_page (Frame &frame) |
静态 Public 成员函数 | |
static void | set_instance (BufferPoolManager *bpm) |
static BufferPoolManager & | instance () |
Private 属性 | |
BPFrameManager | frame_manager_ {"BufPool"} |
common::Mutex | lock_ |
std::unordered_map< std::string, DiskBufferPool * > | buffer_pools_ |
std::unordered_map< int, DiskBufferPool * > | fd_buffer_pools_ |
BufferPool的管理类
RC BufferPoolManager::create_file | ( | const char * | file_name | ) |
Here don't care about the failure