diff options
Diffstat (limited to 'src/utils/statistics.c')
-rw-r--r-- | src/utils/statistics.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/utils/statistics.c b/src/utils/statistics.c index 045c28255..7075cd3c8 100644 --- a/src/utils/statistics.c +++ b/src/utils/statistics.c @@ -37,7 +37,7 @@ typedef struct uint64 panic_cnt; /* number of PANIC messages */ uint64 fatal_cnt; /* number of FATAL messages */ uint64 error_cnt; /* number of ERROR messages */ -} PER_NODE_STAT; +} PER_NODE_STAT; static volatile PER_NODE_STAT *per_node_stat; @@ -113,23 +113,23 @@ stat_count_up(int backend_node_id, Node *parse_tree) else { - switch(nodeTag(parse_tree)) + switch (nodeTag(parse_tree)) { - case(T_CheckPointStmt): - case(T_DeallocateStmt): - case(T_DiscardStmt): - case(T_ExecuteStmt): - case(T_ExplainStmt): - case(T_ListenStmt): - case(T_LoadStmt): - case(T_LockStmt): - case(T_NotifyStmt): - case(T_PrepareStmt): - case(T_TransactionStmt): - case(T_UnlistenStmt): - case(T_VacuumStmt): - case(T_VariableSetStmt): - case(T_VariableShowStmt): + case (T_CheckPointStmt): + case (T_DeallocateStmt): + case (T_DiscardStmt): + case (T_ExecuteStmt): + case (T_ExplainStmt): + case (T_ListenStmt): + case (T_LoadStmt): + case (T_LockStmt): + case (T_NotifyStmt): + case (T_PrepareStmt): + case (T_TransactionStmt): + case (T_UnlistenStmt): + case (T_VacuumStmt): + case (T_VariableSetStmt): + case (T_VariableShowStmt): per_node_stat[backend_node_id].other_cnt++; break; |