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

Function pgstat_report_wait_start

src/include/utils/wait_event.h:286–294  ·  view source on GitHub ↗

---------- * pgstat_report_wait_start() - * * Called from places where server process needs to wait. This is called * to report wait event information. The wait information is stored * as 4-bytes where first byte represents the wait event class (type of * wait, for different types of wait, refer WaitClass) and the next * 3-bytes represent the actual wait event. Currently 2-bytes are used

Source from the content-addressed store, hash-verified

284 * ----------
285 */
286static inline void
287pgstat_report_wait_start(uint32 wait_event_info)
288{
289 /*
290 * Since this is a four-byte field which is always read and written as
291 * four-bytes, updates are atomic.
292 */
293 *(volatile uint32 *) my_wait_event_info = wait_event_info;
294}
295
296/* ----------
297 * pgstat_report_wait_end() -

Callers 15

KmgrWriteCryptoKeysFunction · 0.85
load_relmap_fileFunction · 0.85
write_relmap_fileFunction · 0.85
CreateLockFileFunction · 0.85
AddToDataDirLockFileFunction · 0.85
RecheckDataDirLockFileFunction · 0.85
basebackup_read_fileFunction · 0.85
SendTimeLineHistoryFunction · 0.85
SaveSlotToPathFunction · 0.85
RestoreSlotFromDiskFunction · 0.85
SyncRepWaitForLSNFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected