MCPcopy Create free account
hub / github.com/apache/cloudberry / FreeAccessStrategy

Function FreeAccessStrategy

src/backend/storage/buffer/freelist.c:602–608  ·  view source on GitHub ↗

* FreeAccessStrategy -- release a BufferAccessStrategy object * * A simple pfree would do at the moment, but we would prefer that callers * don't assume that much about the representation of BufferAccessStrategy. */

Source from the content-addressed store, hash-verified

600 * don't assume that much about the representation of BufferAccessStrategy.
601 */
602void
603FreeAccessStrategy(BufferAccessStrategy strategy)
604{
605 /* don't crash if called on a "default" strategy */
606 if (strategy != NULL)
607 pfree(strategy);
608}
609
610/*
611 * GetBufferFromRing -- returns a buffer from the ring, or NULL if the

Callers 5

blgetbitmapFunction · 0.85
initscanFunction · 0.85
heap_endscanFunction · 0.85
FreeBulkInsertStateFunction · 0.85
parallel_vacuum_mainFunction · 0.85

Calls 1

pfreeFunction · 0.50

Tested by

no test coverage detected