From: Yoshiyuki Asaba Date: Thu, 22 Jun 2006 08:17:16 +0000 (+0000) Subject: Fix deadlock problem with extend query. X-Git-Tag: V3_1~6 X-Git-Url: http://git.postgresql.org/gitweb/static/main.js?a=commitdiff_plain;h=1da2e4451bd237fc29023a7369a58b30e19e7266;p=pgpool1.git Fix deadlock problem with extend query. Call synchronize() in Execute() if replication_strict is true. --- 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)),