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

Function ImmediateCheckpointRequested

src/backend/postmaster/checkpointer.c:678–690  ·  view source on GitHub ↗

* Returns true if an immediate checkpoint request is pending. (Note that * this does not check the *current* checkpoint's IMMEDIATE flag, but whether * there is one pending behind it.) */

Source from the content-addressed store, hash-verified

676 * there is one pending behind it.)
677 */
678static bool
679ImmediateCheckpointRequested(void)
680{
681 volatile CheckpointerShmemStruct *cps = CheckpointerShmem;
682
683 /*
684 * We don't need to acquire the ckpt_lck in this case because we're only
685 * looking at a single flag bit.
686 */
687 if (cps->ckpt_flags & CHECKPOINT_IMMEDIATE)
688 return true;
689 return false;
690}
691
692/*
693 * CheckpointWriteDelay -- control rate of checkpoint

Callers 1

CheckpointWriteDelayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected