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

Function PageGetLSN

src/include/storage/bufpage.h:390–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388 */
389extern bool BufferLockHeldByMe(Page page);
390static inline XLogRecPtr
391PageGetLSN(Page page)
392{
393#if defined (USE_ASSERT_CHECKING) && !defined(FRONTEND)
394 Assert(BufferLockHeldByMe(page));
395#endif
396 return PageXLogRecPtrGet(((PageHeader) (page))->pd_lsn);
397}
398
399/*
400 * Additional macros for access to page headers. (Beware multiple evaluation

Callers 15

gist_page_opaque_infoFunction · 0.85
page_headerFunction · 0.85
nextval_internalFunction · 0.85
sendFileFunction · 0.85
BufferGetLSNAtomicFunction · 0.85
checkXLogConsistencyFunction · 0.85
XLogRecordAssembleFunction · 0.85
lazy_scan_heapFunction · 0.85

Calls 1

BufferLockHeldByMeFunction · 0.85

Tested by 1

TestForOldSnapshotFunction · 0.68