From 1da2e4451bd237fc29023a7369a58b30e19e7266 Mon Sep 17 00:00:00 2001 From: Yoshiyuki Asaba Date: Thu, 22 Jun 2006 08:17:16 +0000 Subject: [PATCH] Fix deadlock problem with extend query. Call synchronize() in Execute() if replication_strict is true. --- pool_process_query.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pool_process_query.c b/pool_process_query.c index 451b537..b6c0cb5 100644 --- a/pool_process_query.c +++ b/pool_process_query.c @@ -782,6 +782,12 @@ static POOL_STATUS Execute(POOL_CONNECTION *frontend, if (!REPLICATION) break; + else if (pool_config.replication_strict) + { + pool_debug("waiting for backend completing the query"); + if (synchronize(cp)) + return POOL_END; + } } while ((kind = pool_read_kind(backend)), -- 2.39.5