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

Move missing Mnesia-specific code to rabbit_db_* modules #6821

Merged
merged 12 commits into from Feb 2, 2023

Conversation

dcorbacho
Copy link
Contributor

Continuation of the work started in #6430

The idea is to isolate in those modules the code to handle the records in the database. For now, we only support Mnesia, but there is work in progress to move to another database engine. Doing this reorganization of the code will also isolate the changes of this upcoming database engine switch, making them easier to rebase and review.

@dcorbacho dcorbacho marked this pull request as draft January 9, 2023 09:51
@mergify mergify bot added the bazel label Jan 9, 2023
@dcorbacho dcorbacho force-pushed the rabbit-db-modules branch 4 times, most recently from a34bb4f to eca6557 Compare January 13, 2023 12:03
@dcorbacho dcorbacho changed the title WIP Move missing Mnesia-specific code to rabbit_db_topic_exchange module WIP Move missing Mnesia-specific code to rabbit_db_* modules Jan 13, 2023
@dcorbacho dcorbacho added this to the 3.12.0 milestone Jan 13, 2023
@dcorbacho dcorbacho force-pushed the rabbit-db-modules branch 17 times, most recently from 5497aaf to f2efeb0 Compare January 19, 2023 09:55
@dcorbacho dcorbacho force-pushed the rabbit-db-modules branch 3 times, most recently from 4d0ad07 to dcd1ee8 Compare January 23, 2023 13:02
@dcorbacho dcorbacho force-pushed the rabbit-db-modules branch 4 times, most recently from 3337f69 to 97a084c Compare January 31, 2023 16:57
the-mikedavis
the-mikedavis previously approved these changes Feb 1, 2023
Copy link
Member

@the-mikedavis the-mikedavis left a comment

Choose a reason for hiding this comment

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

I gave this another read through and it looks good to me. I'm not super familiar with the server codebase though so take my review with a grain of salt.

I like seeing the direct mnesia calls and match-specs moved into db modules, it feels more clean (even independent of the upcoming khepri changes) 👍

Copy link
Member

@dumbbell dumbbell left a comment

Choose a reason for hiding this comment

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

Awesome! Thank you :-)

@dumbbell dumbbell merged commit 9a99480 into main Feb 2, 2023
@dumbbell dumbbell deleted the rabbit-db-modules branch February 2, 2023 14:40
ansd added a commit to rabbitmq/rabbitmq-lvc-exchange that referenced this pull request May 31, 2023
ansd added a commit to rabbitmq/rabbitmq-lvc-exchange that referenced this pull request May 31, 2023
ansd added a commit to rabbitmq/rabbitmq-lvc-exchange that referenced this pull request May 31, 2023
ansd added a commit to rabbitmq/rabbitmq-lvc-exchange that referenced this pull request May 31, 2023
ansd added a commit to rabbitmq/rabbitmq-lvc-exchange that referenced this pull request May 31, 2023
ansd added a commit to rabbitmq/rabbitmq-lvc-exchange that referenced this pull request Jun 1, 2023
ansd added a commit to rabbitmq/rabbitmq-lvc-exchange that referenced this pull request Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants