From 0f3c943ebdbd97990aca722946f8e5a642c096de Mon Sep 17 00:00:00 2001 From: Adis Osmonov Date: Tue, 20 May 2025 09:41:17 +0100 Subject: [PATCH] Allow plugins and query_parser_read_write_splitting without globally enabling query_parser_enabled This was previously blocked by a config check, even though query_parser_enabled can be temporarily overridden. The check has been removed to allow independent use. --- src/config.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/config.rs b/src/config.rs index e56f92b9..bb170c33 100644 --- a/src/config.rs +++ b/src/config.rs @@ -723,15 +723,13 @@ impl Pool { } if self.query_parser_read_write_splitting && !self.query_parser_enabled { - error!( + warn!( "query_parser_read_write_splitting is only valid when query_parser_enabled is true" ); - return Err(Error::BadConfig); } if self.plugins.is_some() && !self.query_parser_enabled { - error!("plugins are only valid when query_parser_enabled is true"); - return Err(Error::BadConfig); + warn!("plugins are only valid when query_parser_enabled is true"); } self.automatic_sharding_key = match &self.automatic_sharding_key {