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

Function XLogInsert

src/backend/access/transam/xloginsert.c:432–436  ·  view source on GitHub ↗

* Insert an XLOG record having the specified RMID and info bytes, with the * body of the record being the data and buffer references registered earlier * with XLogRegister* calls. * * Returns XLOG pointer to end of record (beginning of next record). * This can be used as LSN for data pages affected by the logged action. * (LSN is the XLOG point up to which the XLOG must be flushed to disk *

Source from the content-addressed store, hash-verified

430 * WAL rule "write the log before the data".)
431 */
432XLogRecPtr
433XLogInsert(RmgrId rmid, uint8 info)
434{
435 return XLogInsert_Internal(rmid, info, GetCurrentTransactionIdIfAny());
436}
437
438static XLogRecPtr
439XLogInsert_Internal(RmgrId rmid, uint8 info, TransactionId headerXid)

Callers 15

XLogPaxInsertFunction · 0.85
XLogPaxCreateDirectoryFunction · 0.85
XLogPaxTruncateFunction · 0.85
write_relmap_fileFunction · 0.85
LogLogicalInvalidationsFunction · 0.85
createdbFunction · 0.85
movedbFunction · 0.85
remove_dbtablespacesFunction · 0.85
CreateTableSpaceFunction · 0.85
DropTableSpaceFunction · 0.85
ExecuteTruncateGutsFunction · 0.85

Calls 2

XLogInsert_InternalFunction · 0.85

Tested by

no test coverage detected