| 276 | } |
| 277 | |
| 278 | Status PinAll(BufferPool* pool, ClientHandle* client, vector<PageHandle>* pages) { |
| 279 | for (auto& page : *pages) RETURN_IF_ERROR(pool->Pin(client, &page)); |
| 280 | return Status::OK(); |
| 281 | } |
| 282 | |
| 283 | /// Unpin all of 'pages'. If 'delay_between_unpins_ms' > 0, sleep between unpins. |
| 284 | void UnpinAll(BufferPool* pool, ClientHandle* client, vector<PageHandle>* pages, |