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

Function flushCachedPage

contrib/bloom/blinsert.c:46–58  ·  view source on GitHub ↗

* Flush page cached in BloomBuildState. */

Source from the content-addressed store, hash-verified

44 * Flush page cached in BloomBuildState.
45 */
46static void
47flushCachedPage(Relation index, BloomBuildState *buildstate)
48{
49 Page page;
50 Buffer buffer = BloomNewBuffer(index);
51 GenericXLogState *state;
52
53 state = GenericXLogStart(index);
54 page = GenericXLogRegisterBuffer(state, buffer, GENERIC_XLOG_FULL_IMAGE);
55 memcpy(page, buildstate->data.data, BLCKSZ);
56 GenericXLogFinish(state);
57 UnlockReleaseBuffer(buffer);
58}
59
60/*
61 * (Re)initialize cached page in BloomBuildState.

Callers 2

bloomBuildCallbackFunction · 0.85
blbuildFunction · 0.85

Calls 5

BloomNewBufferFunction · 0.85
GenericXLogStartFunction · 0.85
GenericXLogFinishFunction · 0.85
UnlockReleaseBufferFunction · 0.85

Tested by

no test coverage detected