Method for implementing transaction rollback mechanism in online transaction of graphic database
暂无分享,去创建一个
The invention relates to a method for implementing a transaction rollback mechanism in an online transaction of a graphic database. The method comprises the following steps of: calling an application program interface (API) of graphic data by a client program and transmitting a transaction number to be submitted; checking whether a transaction exists, the transaction is overdue, the transaction is submitted, the transaction is rolled back and the transaction is locked and marking a transaction rollback state; restoring a data record of the locking of the transaction; deleting dirty data; and deleting the transaction record. By a simple and reliable data rollback mechanism, a third state between a rollback and a non rollback state cannot appear. The data operation has continuity of any broken point, namely after transaction rollback operation is called, if accident performing is interrupted at any time point from start to finish of the data restoration, the performing can be continued until the restoration is finished after the system is restarted.