ROADMAP v0.3.0 - WAL commit marker for transaction durability
(&self, transaction_id: TransactionId)
| 520 | /// Mark a transaction as committed |
| 521 | #[allow(dead_code)] // ROADMAP v0.3.0 - WAL commit marker for transaction durability |
| 522 | pub fn mark_committed(&self, transaction_id: TransactionId) -> Result<(), WALError> { |
| 523 | let seq = self.next_global_sequence(); |
| 524 | let entry = WALEntry::new( |
| 525 | WALEntryType::Commit, |
| 526 | transaction_id, |
| 527 | seq, |
| 528 | 0, // Commit doesn't have a txn sequence |
| 529 | Some(OperationType::Commit), |
| 530 | format!("Transaction {} committed", transaction_id.id()), |
| 531 | ); |
| 532 | |
| 533 | self.write_entry(entry) |
| 534 | } |
| 535 | |
| 536 | /// Mark a transaction as rolled back |
| 537 | #[allow(dead_code)] // ROADMAP v0.3.0 - WAL entry for ROLLBACK durability (write rollback marker to WAL) |
nothing calls this directly
no test coverage detected