◆ BufferEvictionNode() [1/2]
| duckdb::BufferEvictionNode::BufferEvictionNode |
( |
| ) |
|
|
inline |
◆ BufferEvictionNode() [2/2]
387257 : memory_p(std::move(block_memory_p)), handle_sequence_number(eviction_seq_num) {
387258 D_ASSERT(!memory_p.expired());
387259}
◆ CanUnload()
| bool duckdb::BufferEvictionNode::CanUnload |
( |
BlockMemory & | memory | ) |
|
387261 {
387262 if (handle_sequence_number != memory.GetEvictionSequenceNumber()) {
387263
387264 return false;
387265 }
387266 return memory.CanUnload();
387267}
◆ TryGetBlockMemory()
387269 {
387270 auto shared_memory_p = memory_p.lock();
387271 if (!shared_memory_p) {
387272
387273 return nullptr;
387274 }
387275 if (!CanUnload(*shared_memory_p)) {
387276
387277 return nullptr;
387278 }
387279
387280 return shared_memory_p;
387281}
The documentation for this struct was generated from the following file: