* The shutdown hook commits the half-finished transaction. When we start
* back up, we assume the whole transaction has been committed, and end
* up only registering the proportion of segments for which a RegisterMe
* has already been created. Yes, this has happened, yes, it sucks.
* Add our own hook to rollback and close... */
dbConfig.automaticShutDown(false);
/* Block size 8 should have minimal impact since pointers are this
* long, and allows databases of up to 16GB.
* FIXME make configurable by user. */
dbConfig.blockSize(8);
dbConfig.diagnostic().addListener(new DB4ODiagnosticListener());