Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1a8Aab-0006es-AX for pgsql-committers@arkaria.postgresql.org; Sun, 13 Dec 2015 17:37:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1a8AaZ-00083Z-Rv for pgsql-committers@arkaria.postgresql.org; Sun, 13 Dec 2015 17:37:39 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1a8AaN-0007qa-Nk for pgsql-committers@postgresql.org; Sun, 13 Dec 2015 17:37:27 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1a8AaI-0003xx-H0 for pgsql-committers@postgresql.org; Sun, 13 Dec 2015 17:37:26 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id tBDHbIVB027391; Sun, 13 Dec 2015 12:37:19 -0500 From: Tom Lane To: Andres Freund cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Fix bug leading to restoring unlogged relations from empty files In-reply-to: References: Comments: In-reply-to Andres Freund message dated "Thu, 10 Dec 2015 15:50:20 +0000" Date: Sun, 13 Dec 2015 12:37:18 -0500 Message-ID: <27390.1450028238@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org Andres Freund writes: > Fix bug leading to restoring unlogged relations from empty files. Coverity thinks, quite correctly AFAICS, that this line you wrote in FlushOneBuffer() is useless: LWLockHeldByMe(bufHdr->content_lock); Perhaps you meant Assert(LWLockHeldByMe(bufHdr->content_lock)); ? regards, tom lane -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers