Patent ID: 11966385
Assignee: MICROSOFT TECHNOLOGY LICENSING, LLC
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 10:
11. A computer-implemented method comprising:
writing, at a transaction logger, transaction log entries to a transaction log stored outside of a trusted execution environment, each of the transaction log entries comprising data representing a transaction processed by a database system and a counter value;
truncating, at a log truncation module, the transaction log including generating a snapshot representing a state of the database system at a point in time and truncating all transaction log entries for transactions occurring before that point in time;
generating, at a first secure counter, the counter value stored outside of the trusted execution environment, the counter value comprising a representation of a number of the transaction log entries which have been written to the transaction log for transactions which have been committed to the database system;
maintaining, at a second secure counter, a representation of a number of transaction log entries truncated by the log truncation module; and
performing, at a restoration module, at least the following operations:
determine, based at least in part on a current value of the first secure counter and a current value of the second secure counter, that a correct number of transaction log entries has been retrieved from the truncated transaction log, and
restore the database system based on the retrieved transaction log entries in response to determining that the correct number of transaction log entries have been retrieved from the truncated transaction log.