projects
/
pgpool2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccbdd7c
)
Fix coding style.
author
Tatsuo Ishii
<
[email protected]
>
Thu, 22 Sep 2022 11:49:24 +0000
(20:49 +0900)
committer
Tatsuo Ishii
<
[email protected]
>
Thu, 22 Sep 2022 11:49:24 +0000
(20:49 +0900)
Declaration of variables must be before any execute statements.
src/utils/pool_process_reporting.c
patch
|
blob
|
blame
|
history
diff --git
a/src/utils/pool_process_reporting.c
b/src/utils/pool_process_reporting.c
index c63b2ed45219f0a3ac789aa890433474f33644f2..3310530a0c42d48803bdcab20dd7ffacf6fa9bf8 100644
(file)
--- a/
src/utils/pool_process_reporting.c
+++ b/
src/utils/pool_process_reporting.c
@@
-1669,10
+1669,11
@@
get_processes(int *nrows)
for (child = 0; child < pool_config->num_init_children; child++)
{
+ int exist_live_connection = 0;
+
proc_id = process_info[child].pid;
pi = pool_get_process_info(proc_id);
- int exist_live_connection = 0;
for (pool = 0; pool < pool_config->max_pool; pool++)
{
poolBE = pool * MAX_NUM_BACKENDS;