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

Commit 8c4e2d5

Browse files
authored
Merge pull request #562 from libsql/mt-fix-replication-not-starting
mt: Fix missing block_in_place
2 parents 855a0e8 + 5955679 commit 8c4e2d5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

libsqlx-server/src/allocation/primary/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,9 @@ impl ConnectionHandler for PrimaryConnection {
320320
async fn handle_conn_message(&mut self, msg: ConnectionMessage) {
321321
match msg {
322322
ConnectionMessage::Execute { pgm, builder } => {
323-
self.conn.execute_program(&pgm, builder).unwrap()
323+
block_in_place(|| {
324+
self.conn.execute_program(&pgm, builder).unwrap()
325+
})
324326
}
325327
ConnectionMessage::Describe => {
326328
todo!()

libsqlx-server/src/allocation/replica.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ impl Replicator {
172172
}
173173

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

0 commit comments

Comments
 (0)