mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-27 08:39:28 +08:00
Change if (!(x || y)) construct with if (!x && !y), for clarity.
This commit is contained in:
parent
fc6da31ae1
commit
9625b18493
@ -13,7 +13,7 @@
|
||||
*
|
||||
* Copyright (c) 2001-2005, PostgreSQL Global Development Group
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.115 2005/12/31 19:39:10 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.116 2006/01/02 00:58:00 momjian Exp $
|
||||
* ----------
|
||||
*/
|
||||
#include "postgres.h"
|
||||
@ -810,9 +810,9 @@ pgstat_report_tabstat(void)
|
||||
int i;
|
||||
|
||||
if (pgStatSock < 0 ||
|
||||
!(pgstat_collect_querystring ||
|
||||
pgstat_collect_tuplelevel ||
|
||||
pgstat_collect_blocklevel))
|
||||
(!pgstat_collect_querystring &&
|
||||
!pgstat_collect_tuplelevel &&
|
||||
!pgstat_collect_blocklevel))
|
||||
{
|
||||
/* Not reporting stats, so just flush whatever we have */
|
||||
RegularTabStat.tsa_used = 0;
|
||||
@ -1224,9 +1224,9 @@ pgstat_initstats(PgStat_Info *stats, Relation rel)
|
||||
void
|
||||
pgstat_count_xact_commit(void)
|
||||
{
|
||||
if (!(pgstat_collect_querystring ||
|
||||
pgstat_collect_tuplelevel ||
|
||||
pgstat_collect_blocklevel))
|
||||
if (!pgstat_collect_querystring &&
|
||||
!pgstat_collect_tuplelevel &&
|
||||
!pgstat_collect_blocklevel)
|
||||
return;
|
||||
|
||||
pgStatXactCommit++;
|
||||
@ -1256,9 +1256,9 @@ pgstat_count_xact_commit(void)
|
||||
void
|
||||
pgstat_count_xact_rollback(void)
|
||||
{
|
||||
if (!(pgstat_collect_querystring ||
|
||||
pgstat_collect_tuplelevel ||
|
||||
pgstat_collect_blocklevel))
|
||||
if (!pgstat_collect_querystring &&
|
||||
!pgstat_collect_tuplelevel &&
|
||||
!pgstat_collect_blocklevel)
|
||||
return;
|
||||
|
||||
pgStatXactRollback++;
|
||||
|
Loading…
Reference in New Issue
Block a user