|virtual void||commit ()=0|
This class defines an additional function named commit. All the operations will be done when commit is called; without calling commit, all previous operations are rolled back.
Currently DiskStorageWithRollback is implemented.
This method commits all the changes to the storage. Without calling commit, the write operations that have been done on this storage is canceled; the file is rolled backed into the initial state.