Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

mt: Fix missing block_in_place #562

Merged
merged 1 commit into from
Jul 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion libsqlx-server/src/allocation/primary/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,9 @@ impl ConnectionHandler for PrimaryConnection {
async fn handle_conn_message(&mut self, msg: ConnectionMessage) {
match msg {
ConnectionMessage::Execute { pgm, builder } => {
self.conn.execute_program(&pgm, builder).unwrap()
block_in_place(|| {
self.conn.execute_program(&pgm, builder).unwrap()
})
}
ConnectionMessage::Describe => {
todo!()
Expand Down
1 change: 1 addition & 0 deletions libsqlx-server/src/allocation/replica.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ impl Replicator {
}

async fn query_replicate(&mut self) {
tracing::debug!("seinding replication request");
self.req_id += 1;
self.next_seq = 0;
// clear buffered, uncommitted frames
Expand Down