aboutsummaryrefslogtreecommitdiff
path: root/cmd/bolt/main.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-07-11 09:54:10 -0600
committerBen Johnson <benbjohnson@yahoo.com>2014-07-11 09:54:10 -0600
commitac4838472da343493c54c7649deb3b20669f8c3b (patch)
treea0da15376d9bd4b54877487e6f9c5d3614bd0d59 /cmd/bolt/main.go
parentMerge pull request #219 from benbjohnson/freelist-overflow (diff)
downloaddedo-ac4838472da343493c54c7649deb3b20669f8c3b.tar.gz
dedo-ac4838472da343493c54c7649deb3b20669f8c3b.tar.xz
Recover from panics appropriately.
This commit adds a defer handler to ensure that transactions are always closed out - even in the event of a panic within user code. It's recommended that applications always fail in the event of a panic but some packages such as net/http will automatically recover which is a problem (IHMO).
Diffstat (limited to 'cmd/bolt/main.go')
0 files changed, 0 insertions, 0 deletions