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

Function RandomCancelKey

src/backend/postmaster/postmaster.c:6013–6017  ·  view source on GitHub ↗

* Generate a random cancel key. */

Source from the content-addressed store, hash-verified

6011 * Generate a random cancel key.
6012 */
6013static bool
6014RandomCancelKey(int32 *cancel_key)
6015{
6016 return pg_strong_random(cancel_key, sizeof(int32));
6017}
6018
6019/*
6020 * Count up number of child processes of specified types (dead_end children

Callers 4

BackendStartupFunction · 0.85
StartAutovacuumWorkerFunction · 0.85
StartLMWorkerFunction · 0.85
assign_backendlist_entryFunction · 0.85

Calls 1

pg_strong_randomFunction · 0.85

Tested by

no test coverage detected