Fixed the right order in skysql_send_eof:

1. Send the skysql_warning_count
2. Send the skysql_server_status
This commit is contained in:
Massimiliano Pinto 2013-05-12 22:16:39 +02:00
parent be1f43af6f
commit 5f4a14a5c6

View File

@ -601,12 +601,12 @@ apr_status_t skysql_send_eof(conn_rec *c, apr_pool_t *p, uint8_t packet_number)
memcpy(skysql_payload, &field_count, sizeof(field_count));
skysql_payload = skysql_payload + sizeof(field_count);
memcpy(skysql_payload, skysql_server_status, sizeof(skysql_server_status));
skysql_payload = skysql_payload + sizeof(skysql_server_status);
memcpy(skysql_payload, skysql_warning_count, sizeof(skysql_warning_count));
skysql_payload = skysql_payload + sizeof(skysql_warning_count);
memcpy(skysql_payload, skysql_server_status, sizeof(skysql_server_status));
skysql_payload = skysql_payload + sizeof(skysql_server_status);
// create brigade
bb = apr_brigade_create(p, c->bucket_alloc);
// write