1#include "duckdb/storage/buffer/buffer_handle.hpp"
2#include "duckdb/storage/buffer_manager.hpp"
3
4using namespace duckdb;
5using namespace std;
6
7BufferHandle::BufferHandle(BufferManager &manager, block_id_t block_id, FileBuffer *node)
8 : manager(manager), block_id(block_id), node(node) {
9}
10
11BufferHandle::~BufferHandle() {
12 manager.Unpin(block_id);
13}
14