Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix parse complete msgs order in pipeline mode #556

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 3 additions & 12 deletions sources/frontend.c
Original file line number Diff line number Diff line change
Expand Up @@ -729,8 +729,8 @@ static od_frontend_status_t od_frontend_remote_server(od_relay_t *relay,

kiwi_be_type_t type = *data;
if (instance->config.log_debug)
od_debug(&instance->logger, "main", client, server, "%s",
kiwi_be_type_to_string(type));
od_debug(&instance->logger, "main", client, server,
"sending to client %s", kiwi_be_type_to_string(type));

int is_deploy = od_server_in_deploy(server);
int is_ready_for_query = 0;
Expand Down Expand Up @@ -784,10 +784,7 @@ static od_frontend_status_t od_frontend_remote_server(od_relay_t *relay,
break;
}
case KIWI_BE_PARSE_COMPLETE:
if (route->rule->pool->reserve_prepared_statement) {
// skip msg
is_deploy = 1;
}
break;
default:
break;
}
Expand Down Expand Up @@ -1302,12 +1299,6 @@ static od_frontend_status_t od_frontend_remote_client(od_relay_t *relay,
machine_msg_free(msg);
}

machine_msg_t *pmsg;
pmsg = kiwi_be_write_parse_complete(NULL);
if (pmsg == NULL) {
return OD_ESERVER_WRITE;
}
rc = od_write(&client->io, pmsg);
forwarded = 1;

if (rc == -1) {
Expand Down
Loading