-
Notifications
You must be signed in to change notification settings - Fork 5
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
Delete all table records when dropping tables #1033
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just flagged a few things to discuss.
|
||
begin_transaction(); | ||
gaia::addr_book::customer_t::delete_row(customer_id); | ||
EXPECT_EQ(gaia::addr_book::customer_t::list().size(), 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this call fail? Maybe not as part of this PR, and maybe it makes sense it does not fail, just worth thinking about it. If we think this should fail you can add a follow up jira.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have created GAIAPLAT-1623 and added some comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is fine to merge. We can address the issues raised elsewhere.
239b4a7
to
9df9b18
Compare
9df9b18
to
1f8d57a
Compare
Delete the table records when dropping tables. The server side index logic needs to be updated due to table record and catalog info are updated in the same txn. I also moved the
reset
method ingaia_ptr
from protected to public.