METHOD AND APPARATUS FOR UPDATING DATABASE BY USING TWO-PHASE COMMIT DISTRIBUTED TRANSACTION
The present specification provides a method for updating a database by using a two-phase commit distributed transaction. The method is applied to a coordinator, and includes: sending a phase 1 prepare request message to each participant to end a current transaction, the current transaction being use...
Gespeichert in:
Hauptverfasser: | , , , , |
---|---|
Format: | Patent |
Sprache: | eng ; fre ; ger |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The present specification provides a method for updating a database by using a two-phase commit distributed transaction. The method is applied to a coordinator, and includes: sending a phase 1 prepare request message to each participant to end a current transaction, the current transaction being used to update a target database record; and after receiving write lock advance release requests sent by all participants, returning a write lock advance release response to each participant to instruct each participant to unlock a target database record of the participant, the write lock advance release requests being sent by the participants after the participants successfully write a log of an update operation of the current transaction to a log buffer. |
---|