-
Notifications
You must be signed in to change notification settings - Fork 713
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
Remove Rdb_transaction::m_ddl_transaction #1391
Remove Rdb_transaction::m_ddl_transaction #1391
Conversation
This is done in preparation for always flushing DD transactions: it will require a new flag |
With DD tables in MyRocks, the property of whether it is safe to skip uniqueness checks on writes should be resolved on a table, not transaction level. Thus fold the logic of setting m_ddl_transaction to true into ha_rocksdb::skip_unique. At the same time this flag is duplicated between struct update_row_info and callstack of affected functions, thus remove it from the callstack.
bdef9ff
to
2565ff1
Compare
@luqun , removed |
@luqun has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
1 similar comment
@luqun has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
looks like rocksdb.rqg_runtime MTR failed. still investigating |
The issue is related to DDL skip uniq check, such as following code. Add PK should fail due to duplicate col2 value.
|
The DDL transaction flag cannot be folded into unique check flag, the original design idea was broken. Thinking of alternatives |
The DD durability PR is #1403. I will scavenge non-functional |
The cleanups are in #1404 |
With DD tables in MyRocks, the property of whether it is safe to skip uniqueness checks on writes should be resolved on a table, not transaction level. Thus fold the logic of setting m_ddl_transaction to true into ha_rocksdb::skip_unique. At the same time this flag is duplicated between struct update_row_info and callstack of affected functions, thus remove it from the callstack.