bitcoin/bitcoin — pull request #1295 by jgarzik (2012-05-14 05:14:31+00:00)
Title: [FIX] Always check return values of TxnBegin() and TxnCommit()

Checking TxnCommit() return value is obviously needed. Checking TxnBegin() return value is important too; failing to start a transaction could occur for any number of reasons.