mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +03:00
Change if (!(x || y)) construct with if (!x && !y), for clarity.
This commit is contained in:
@ -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)
|
|||||||
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)
|
|||||||
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)
|
|||||||
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++;
|
||||||
|
Reference in New Issue
Block a user