Perform the first phase of a transaction started with `tpc_begin()`.
(self)
| 533 | self.wait(self._tpc_begin_gen(xid)) |
| 534 | |
| 535 | def tpc_prepare(self) -> None: |
| 536 | """ |
| 537 | Perform the first phase of a transaction started with `tpc_begin()`. |
| 538 | """ |
| 539 | try: |
| 540 | with self.lock: |
| 541 | self.wait(self._tpc_prepare_gen()) |
| 542 | except e.ObjectNotInPrerequisiteState as ex: |
| 543 | raise e.NotSupportedError(str(ex)) from None |
| 544 | |
| 545 | def tpc_commit(self, xid: Xid | str | None = None) -> None: |
| 546 | """ |