Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@eelstork
Copy link
Contributor

@eelstork eelstork commented Nov 8, 2015

As noted by @danst18, when USE_LEVELDB and USE_LMDB are disabled, a compiler error is issued since GetDB no longer returns a value.
At runtime a fatal error would be issued anyways. However to help users who don't need a DB backend, NULL should be returned here.

As noted by @danst18, when USE_LEVELDB and USE_LMDB are disabled, a compiler error is issued since GetDB no longer returns a value.
At runtime a fatal error would be issued anyways. However to help users who don't need a DB backend, NULL should be returned here.
@ronghanghu
Copy link
Member

LGTM. Thank you @eelstork !

ronghanghu added a commit that referenced this pull request Nov 8, 2015
@ronghanghu ronghanghu merged commit e050f36 into BVLC:master Nov 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants