mirror of https://github.com/yandex/odyssey.git
Fix pgbouncer compatibility in SHOW CLIENTS
This commit is contained in:
parent
303dc0af3b
commit
8dfcedb3df
|
@ -529,6 +529,16 @@ od_console_show_clients_callback(od_client_t *client, void **argv)
|
|||
return -1;
|
||||
/* request_time */
|
||||
rc = kiwi_be_write_data_row_add(stream, offset, NULL, -1);
|
||||
if (rc == -1)
|
||||
return -1;
|
||||
/* wait */
|
||||
data_len = od_snprintf(data, sizeof(data), "0");
|
||||
rc = kiwi_be_write_data_row_add(stream, offset, data, data_len);
|
||||
if (rc == -1)
|
||||
return -1;
|
||||
/* wait_us */
|
||||
data_len = od_snprintf(data, sizeof(data), "0");
|
||||
rc = kiwi_be_write_data_row_add(stream, offset, data, data_len);
|
||||
if (rc == -1)
|
||||
return -1;
|
||||
/* ptr */
|
||||
|
@ -587,7 +597,7 @@ od_console_show_clients(od_client_t *client, machine_msg_t *stream)
|
|||
|
||||
machine_msg_t *msg;
|
||||
msg = kiwi_be_write_row_descriptionf(stream,
|
||||
"sssssdsdssssds",
|
||||
"sssssdsdssddssds",
|
||||
"type",
|
||||
"user",
|
||||
"database",
|
||||
|
@ -598,6 +608,8 @@ od_console_show_clients(od_client_t *client, machine_msg_t *stream)
|
|||
"local_port",
|
||||
"connect_time",
|
||||
"request_time",
|
||||
"wait",
|
||||
"wait_us",
|
||||
"ptr",
|
||||
"link",
|
||||
"remote_pid",
|
||||
|
|
Loading…
Reference in New Issue