-
Notifications
You must be signed in to change notification settings - Fork 21
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
Two phase commit for mobile packet verifier #700
base: main
Are you sure you want to change the base?
Conversation
|
||
ALTER TABLE data_transfer_sessions RENAME TO old_data_transfer_sessions; | ||
ALTER TABLE data_transfer_sessions_by_row to data_transfer_sessions; | ||
DROP TABLE data_transfer_sessions; |
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.
don't you mean DROP TABLE old_data_transfer_sessions
?
.bind(&session.payer) | ||
.bind(session.uploaded_bytes) |
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.
you're missing the bind on num_dcs
.execute(pool) | ||
for pending_txn in pending_txns { | ||
let txn: Signature = pending_txn.signature.parse()?; | ||
let mut transaction = self.pool.begin().await?; |
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 don't think you ever commit this transaction. does it need to be inside this for
loop or can it be a single transaction for all of the pending_txns
?
I need to figure out how to get the migration for this to work