You are here: Configuration > File Configuration > Disable Commit Recovery

Disable Commit Recovery

This option only makes sense when you try to recover a corrupted database.

Turns commit recovery off. db4o uses a two-phase commit algorithm to ensure ACID properties. In a first step all intended changes are written to a free place in the database file, the "transaction commit record". In a second step the actual changes are performed. If the system breaks down during commit, the commit process is restarted when the database file is opened the next time.

On very rare occasions (possibilities: hardware failure or editing the database file with an external tool) the transaction commit record may be broken. In this case, this method can be used to try to open the database file without commit recovery. The method should only be used in emergency situations after consulting db4o support.

IEmbeddedConfiguration configuration = Db4oEmbedded.NewConfiguration();
configuration.File.DisableCommitRecovery();
FileConfiguration.cs: Disable commit recovery
Dim configuration As IEmbeddedConfiguration = Db4oEmbedded.NewConfiguration()
configuration.File.DisableCommitRecovery()
FileConfiguration.vb: Disable commit recovery