* 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 *
| 430 | * WAL rule "write the log before the data".) |
| 431 | */ |
| 432 | XLogRecPtr |
| 433 | XLogInsert(RmgrId rmid, uint8 info) |
| 434 | { |
| 435 | return XLogInsert_Internal(rmid, info, GetCurrentTransactionIdIfAny()); |
| 436 | } |
| 437 | |
| 438 | static XLogRecPtr |
| 439 | XLogInsert_Internal(RmgrId rmid, uint8 info, TransactionId headerXid) |
no test coverage detected