]> granicus.if.org Git - postgresql/commitdiff
Change if (!(x || y)) construct with if (!x && !y), for clarity.
authorBruce Momjian <bruce@momjian.us>
Mon, 2 Jan 2006 00:58:00 +0000 (00:58 +0000)
committerBruce Momjian <bruce@momjian.us>
Mon, 2 Jan 2006 00:58:00 +0000 (00:58 +0000)
src/backend/postmaster/pgstat.c

index 04d8890afd6bc0f4246518003dcd97489c578caa..39f7f3e74646e975448815ef6d11ba239080e34e 100644 (file)
@@ -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++;