Commit 9625b184 authored by Bruce Momjian's avatar Bruce Momjian

Change if (!(x || y)) construct with if (!x && !y), for clarity.

parent fc6da31a
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* *
* Copyright (c) 2001-2005, PostgreSQL Global Development Group * 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" #include "postgres.h"
...@@ -810,9 +810,9 @@ pgstat_report_tabstat(void) ...@@ -810,9 +810,9 @@ pgstat_report_tabstat(void)
int i; int i;
if (pgStatSock < 0 || if (pgStatSock < 0 ||
!(pgstat_collect_querystring || (!pgstat_collect_querystring &&
pgstat_collect_tuplelevel || !pgstat_collect_tuplelevel &&
pgstat_collect_blocklevel)) !pgstat_collect_blocklevel))
{ {
/* Not reporting stats, so just flush whatever we have */ /* Not reporting stats, so just flush whatever we have */
RegularTabStat.tsa_used = 0; RegularTabStat.tsa_used = 0;
...@@ -1224,9 +1224,9 @@ pgstat_initstats(PgStat_Info *stats, Relation rel) ...@@ -1224,9 +1224,9 @@ pgstat_initstats(PgStat_Info *stats, Relation rel)
void void
pgstat_count_xact_commit(void) pgstat_count_xact_commit(void)
{ {
if (!(pgstat_collect_querystring || if (!pgstat_collect_querystring &&
pgstat_collect_tuplelevel || !pgstat_collect_tuplelevel &&
pgstat_collect_blocklevel)) !pgstat_collect_blocklevel)
return; return;
pgStatXactCommit++; pgStatXactCommit++;
...@@ -1256,9 +1256,9 @@ pgstat_count_xact_commit(void) ...@@ -1256,9 +1256,9 @@ pgstat_count_xact_commit(void)
void void
pgstat_count_xact_rollback(void) pgstat_count_xact_rollback(void)
{ {
if (!(pgstat_collect_querystring || if (!pgstat_collect_querystring &&
pgstat_collect_tuplelevel || !pgstat_collect_tuplelevel &&
pgstat_collect_blocklevel)) !pgstat_collect_blocklevel)
return; return;
pgStatXactRollback++; pgStatXactRollback++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment