Re: LLVM / clang - Mailing list pgsql-hackers

From Takahiro Itagaki
Subject Re: LLVM / clang
Date
Msg-id 20100611144241.CED1.52131E4D@oss.ntt.co.jp
Whole thread Raw
In response to Re: LLVM / clang  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: LLVM / clang  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> wrote:

> Some new warnings, however:
> 
> xlog.c:7759:22: warning: self-comparison always results in a constant
> value
>                 max_locks_per_xact != max_locks_per_xact)
>                                    ^
> 
> Looks like a bug.

Ah, it should be compared with the same name field in ControlFile.

Index: src/backend/access/transam/xlog.c
===================================================================
--- src/backend/access/transam/xlog.c    (HEAD)
+++ src/backend/access/transam/xlog.c    (fixed)
@@ -7756,7 +7756,7 @@    if (wal_level != ControlFile->wal_level ||        MaxConnections !=
ControlFile->MaxConnections||        max_prepared_xacts != ControlFile->max_prepared_xacts ||
 
-        max_locks_per_xact != max_locks_per_xact)
+        max_locks_per_xact != ControlFile->max_locks_per_xact)    {        /*         * The change in number of
backendslots doesn't need to be
 



Regards,
---
Takahiro Itagaki
NTT Open Source Software Center




pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: LLVM / clang
Next
From: Peter Eisentraut
Date:
Subject: Re: LLVM / clang