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