DATA RESTORATION METHOD AND SYSTEM
First Claim
1. A data restoration method, wherein the method comprises:
- after a transaction is submitted, saving a generated transaction log to a buffer of a current node, and backing up the transaction log to a buffer of at least one backup node except the current node;
writing the transaction log saved in the buffer of the current node or the transaction log backed up in the buffer of the backup node into a transaction log file in a disk, wherein the transaction log file in the disk is used for restoring data of the current node; and
restoring, based on the transaction log file in the disk, lost data of the current node when a data loss event occurs in the current node.
1 Assignment
0 Petitions
Accused Products
Abstract
Embodiments of the present invention disclose a data restoration method, including: after a transaction is submitted, saving a generated transaction log to a buffer of a current node, and backing up the transaction log to a buffer of at least one backup node except the current node; writing the transaction log saved in the buffer of the current node or the transaction log backed up in the buffer of the backup node into a transaction log file in a disk, where the transaction log file in the disk is used for restoring data of the current node; and restoring, based on the transaction log file in the disk, lost data of the current node when a data loss event occurs in the current node. By means of the present invention, a risk of system data can be reduced, and durability, safety, and reliability of the system data can be improved.
-
Citations
14 Claims
-
1. A data restoration method, wherein the method comprises:
-
after a transaction is submitted, saving a generated transaction log to a buffer of a current node, and backing up the transaction log to a buffer of at least one backup node except the current node; writing the transaction log saved in the buffer of the current node or the transaction log backed up in the buffer of the backup node into a transaction log file in a disk, wherein the transaction log file in the disk is used for restoring data of the current node; and restoring, based on the transaction log file in the disk, lost data of the current node when a data loss event occurs in the current node. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A data restoration system, comprising:
-
a saving and backup module, configured to;
after a transaction is submitted, save a generated transaction log to a buffer of a current node, and back up the transaction log to a buffer of at least one backup node except the current node;a writing module, configured to write the transaction log saved in the buffer of the current node or the transaction log backed up in the buffer of the backup node into a transaction log file in a disk, wherein the transaction log file in the disk is used for restoring data of the current node; and a restoration module, configured to restore, based on the transaction log file in the disk, lost data of the current node when a data loss event occurs in the current node. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
Specification