Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify database initialization #107

Merged
merged 8 commits into from Feb 18, 2020
Merged

Simplify database initialization #107

merged 8 commits into from Feb 18, 2020

Conversation

tristan0x
Copy link
Member

@tristan0x tristan0x commented Feb 17, 2020

Changes

The new RocksDB boolean configuration key create_missing_column_families drastically simplifies how the database is configured when created.

Removing this chunk of code also gets rid of a bug. An error was silently ignored when RocksDB wasn't linked with snappy but was specified in the database configuration. It led to other errors later...

This PR also makes sure the Basalt graph objects remain in a sane state when an error occurs when opening a RocksDB database.

For reviewers

PLEASE IGNORE FORMATTING CHANGES IN CMake FILES
https://github.com/BlueBrain/basalt/pull/107/files?file-filters%5B%5D=.cpp&file-filters%5B%5D=.hpp&file-filters%5B%5D=.py&file-filters%5B%5D=No+extension

@tristan0x tristan0x changed the title Simplify DB initialization / Do not silent errors Simplify database initialization Feb 17, 2020
Copy link

@ohm314 ohm314 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good (except for some cmake cleanup)!

cmake/FindClangTidy.cmake Show resolved Hide resolved
@tristan0x tristan0x merged commit 8a51433 into master Feb 18, 2020
@tristan0x tristan0x deleted the fix/config branch February 18, 2020 13:59
tristan0x pushed a commit that referenced this pull request Feb 18, 2020
Improve error handling and Rocksdb column families setup
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.

None yet

2 participants