mirror of https://github.com/yandex/odyssey.git
Detach only synchronized server (#338)
Currently client can issue two consequtive sync requests and we will detach his server connection right after first ReadyForQuery. This seems incorrect.
This commit is contained in:
parent
bf48de6242
commit
25b7e36870
|
@ -743,7 +743,7 @@ static od_frontend_status_t od_frontend_remote_server(od_relay_t *relay,
|
|||
return OD_SKIP;
|
||||
|
||||
/* handle transaction pooling */
|
||||
if (is_ready_for_query) {
|
||||
if (is_ready_for_query && od_server_synchronized(server)) {
|
||||
if ((route->rule->pool == OD_RULE_POOL_TRANSACTION ||
|
||||
server->offline) &&
|
||||
!server->is_transaction && !route->id.physical_rep &&
|
||||
|
|
Loading…
Reference in New Issue