Instead of directly answering your questions, Iβll try to explain how you can implement a database transaction with Paxos, perhaps this will help you figure it out.
, , , "". -, , , . -, "Commit" / "Abort" . "" "Commit" / "Abort" .
, Paxos, , Paxos , , , . , , , . , , , , , Paxos, . , , , 2 FOO, , BAR.
- FOO, , BAZ, 1 Paxos Prepare. , FOO , Prepare. , "Vote Commit" Promise, . , "Vote Abort" ( , . ).
Promise "Vote Commit" / "Vote Abort" , "Commit" "Abort" . Paxos Prepare, , - (Acceptor Paxos) "Commit" / "Abort" . - , "Commit" / "Abort" , . , . "Vote Commit" / "Vote Abort" Promises. "Vote Commmit", "Commit" , "Abort" .
Paxos, , "Commit" / "Abort" . , "Commit" , , FOO, BAZ 2 .