Skip to main content

crafty_proto/
two_phase_journal.rs

1//! Cross-shard 2PC client journal metadata replicated through Meta-Raft (Tier 2).
2
3use serde::{Deserialize, Serialize};
4
5/// Client-side 2PC journal upsert replicated via Meta-Raft (not the user state machine).
6#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
7pub struct TwoPhaseJournalCommand {
8    /// Transaction identifier (journal key).
9    pub tx_id: Vec<u8>,
10    /// Postcard-encoded 2PC journal record bytes (see `crafty_client::TwoPhaseJournalRecord`).
11    pub record: Vec<u8>,
12}