* 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.) */
| 676 | * there is one pending behind it.) |
| 677 | */ |
| 678 | static bool |
| 679 | ImmediateCheckpointRequested(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 |
no outgoing calls
no test coverage detected