Create a new WAL entry
(
entry_type: WALEntryType,
transaction_id: TransactionId,
global_sequence: u64,
txn_sequence: u64,
operation_type: Option<OperationType>,
description:
| 83 | impl WALEntry { |
| 84 | /// Create a new WAL entry |
| 85 | pub fn new( |
| 86 | entry_type: WALEntryType, |
| 87 | transaction_id: TransactionId, |
| 88 | global_sequence: u64, |
| 89 | txn_sequence: u64, |
| 90 | operation_type: Option<OperationType>, |
| 91 | description: String, |
| 92 | ) -> Self { |
| 93 | Self { |
| 94 | entry_type, |
| 95 | transaction_id, |
| 96 | global_sequence, |
| 97 | txn_sequence, |
| 98 | timestamp: SystemTime::now(), |
| 99 | operation_type, |
| 100 | description, |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | /// Check if this entry affects the catalog |
| 105 | pub fn affects_catalog(&self) -> bool { |
nothing calls this directly
no outgoing calls
no test coverage detected