MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / mark_committed

Method mark_committed

graphlite/src/txn/wal.rs:522–534  ·  view source on GitHub ↗

ROADMAP v0.3.0 - WAL commit marker for transaction durability

(&self, transaction_id: TransactionId)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 2

next_global_sequenceMethod · 0.80
write_entryMethod · 0.80

Tested by

no test coverage detected