Database recovery using persistent address spaces
AssigneeInternational Business Machines Corporation
InventorsOliver Benke, Roland Seiffert
Life of this patent
Estimating the term…
Abstract
A processor(s) initiates a database transaction, in a computing environment that includes a database that includes one or more memory devices. The processor(s) forks a first address space that represents a current state of the database, to create a second address space. The processor(s) writes an entry indicating timing of the initiating to a log file and generates a file that is mapped to the one or more memory devices. The file includes differences in state between the current state of the database and a state subsequent to executing and committing the database transaction, and a timestamp indicating timing for committing the database transaction. The processor(s) write the database transaction to the second address space.
Claims20
A computer-implemented method, comprising:
- maintaining, by one or more processors, a current version of at least a part of a database in a file associated with a mass storage device, wherein the file comprises content;
- mapping, by the one or more processors, at least a portion of the content of the file to an address region;
- obtaining, by the one or more processors, a command to open a new transaction;
- based on obtaining the command, generating, by the one or more processors, a cloned version of the address region;
- and
- mapping, by the one or more processors, one or more files associated with the mass storage device comprising the database to the clones version of the address region.
A computer program product comprising:
- a computer readable storage medium readable by one or more processors and storing instructions for execution by the one or more processors for performing a method comprising:
- maintaining, by the one or more processors, a current version of at least a part of a database in a file associated with a mass storage device, wherein the file comprises content;
- mapping, by the one or more processors, at least a portion of the content of the file to an address region;
- obtaining, by the one or more processors, a command to open a new transaction;
- based on obtaining the command, generating, by the one or more processors, a cloned version of the address region;
- and
- mapping, by the one or more processors, one or more files associated with the mass storage device comprising the database to the clones version of the address region.
A system comprising:
- one or more memories;
- one or more processors in communication with the one or more memories;
- and
- program instructions executable by the one or more processors via the one or more memories to perform a method, the method comprising:
- a computer readable storage medium readable by one or more processors and storing instructions for execution by the one or more processors for performing a method comprising:
- maintaining, by the one or more processors, a current version of at least a part of a database in a file associated with a mass storage device, wherein the file comprises content;
- mapping, by the one or more processors, at least a portion of the content of the file to an address region;
- obtaining, by the one or more processors, a command to open a new transaction;
- based on obtaining the command, generating, by the one or more processors, a cloned version of the address region;
- and
- mapping, by the one or more processors, one or more files associated with the mass storage device comprising the database to the clones version of the address region.
Dependencies are inferred from the claim text.