MCPcopy Create free account
hub / github.com/apache/impala / UnpinAll

Method UnpinAll

be/src/runtime/bufferpool/buffer-pool-test.cc:284–290  ·  view source on GitHub ↗

Unpin all of 'pages'. If 'delay_between_unpins_ms' > 0, sleep between unpins.

Source from the content-addressed store, hash-verified

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,
285 int delay_between_unpins_ms = 0) {
286 for (auto& page : *pages) {
287 pool->Unpin(client, &page);
288 if (delay_between_unpins_ms > 0) SleepForMs(delay_between_unpins_ms);
289 }
290 }
291
292 void DestroyAll(BufferPool* pool, ClientHandle* client, vector<PageHandle>* pages) {
293 for (auto& page : *pages) pool->DestroyPage(client, &page);

Callers

nothing calls this directly

Calls 1

UnpinMethod · 0.45

Tested by

no test coverage detected