mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-16 01:42:55 +00:00
Move PageServerHandler process_query content
This commit is contained in:
@@ -1415,6 +1415,16 @@ where
|
||||
&mut self,
|
||||
pgb: &mut PostgresBackend<IO>,
|
||||
query_string: &str,
|
||||
) -> Result<(), QueryError> {
|
||||
self.process_query_(pgb, &query_string).await
|
||||
}
|
||||
}
|
||||
|
||||
impl PageServerHandler {
|
||||
async fn process_query_<IO: AsyncRead + AsyncWrite + Send + Sync + Unpin>(
|
||||
&mut self,
|
||||
pgb: &mut PostgresBackend<IO>,
|
||||
query_string: &str,
|
||||
) -> Result<(), QueryError> {
|
||||
fail::fail_point!("simulated-bad-compute-connection", |_| {
|
||||
info!("Hit failpoint for bad connection");
|
||||
|
||||
Reference in New Issue
Block a user