Skip to content

Further removal of templates in db classes#3785

Merged
clemahieu merged 11 commits intonanocurrency:developfrom
clemahieu:db_cleanup
Apr 11, 2022
Merged

Further removal of templates in db classes#3785
clemahieu merged 11 commits intonanocurrency:developfrom
clemahieu:db_cleanup

Conversation

@clemahieu
Copy link
Copy Markdown
Contributor

Moves methods off of store_partial and eliminates it.
Moves mdb_store/rocksdb_store in to their respective namespaces and renamed to store.

…ving function from store_partial.

This is one of the leaky abstractions resulting from the former templated code. lmdb exposes return statuses with int while rocksdb uses an enum class. Removing the leaky abstraction will allow this code to be specialized to the backend type and flow more logically.
…tics and this is how it's actually implemented.
@clemahieu clemahieu added this to the V24.0 milestone Apr 10, 2022
@clemahieu clemahieu requested review from theohax and thsfs April 10, 2022 20:45
{
auto status = store.del (transaction_a, tables::accounts, account_a);
release_assert_success (store, status);
store.release_assert_success (status);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'd let this as a free function.

Copy link
Copy Markdown
Contributor

@thsfs thsfs 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.

@clemahieu clemahieu merged commit e4deda7 into nanocurrency:develop Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants