Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bnMUU-0005TM-J6 for pgsql-hackers@arkaria.postgresql.org; Fri, 23 Sep 2016 09:09:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bnMUU-0001Te-1G for pgsql-hackers@arkaria.postgresql.org; Fri, 23 Sep 2016 09:09:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bnMUT-0001TX-6y for pgsql-hackers@postgresql.org; Fri, 23 Sep 2016 09:09:53 +0000 Received: from newmail.postgrespro.ru ([93.174.131.138] helo=mail.postgrespro.ru) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bnMUR-0002jx-78 for pgsql-hackers@postgresql.org; Fri, 23 Sep 2016 09:09:52 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id 20B2D21C335C for ; Fri, 23 Sep 2016 12:09:50 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at postgrespro.ru Received: from mail.postgrespro.ru ([127.0.0.1]) by localhost (mail.postgrespro.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SA1Pu3PpDM-Q for ; Fri, 23 Sep 2016 12:09:50 +0300 (MSK) Received: from localhost (unknown [192.168.27.1]) by mail.postgrespro.ru (Postfix) with ESMTPSA id D5FAD21C328A; Fri, 23 Sep 2016 12:09:49 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1474621789; bh=09FJyYrsCNxo+HDO3xT4V2juKrMrH66AiO7ehTrNuV0=; h=Date:From:To:Subject; b=ikesGw6TY5vQkaouOP385eoV2vZWS6hGDneRXAtJejk0bRH3IQdzNnu6VUtA5/oC1 qNNcG1aciHYWvAfrJx54QeuUEOrvKG0quvL9KPPSG53saT2Ycto+GKt36flvNck2k/ nbAWP2QYiLJU1InMCZa5ByJdYZz+ozrhOSADCuN4= Date: Fri, 23 Sep 2016 12:08:14 +0300 From: Aleksander Alekseev To: PostgreSQL Hackers Subject: [PATCH] Remove redundant if clause in standbydesc.c Message-ID: <20160923090814.GB1238@e733> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="FL5UXtIhxfXey3p5" Content-Disposition: inline User-Agent: Mutt/1.6.1 (2016-04-27) X-Pg-Spam-Score: -5.1 (-----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org --FL5UXtIhxfXey3p5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello. Very simple small patch - see attachment. -- Best regards, Aleksander Alekseev --FL5UXtIhxfXey3p5 Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="patch-1.patch" diff --git a/src/backend/access/rmgrdesc/standbydesc.c b/src/backend/access/rmgrdesc/standbydesc.c index 13797a3..77983e5 100644 --- a/src/backend/access/rmgrdesc/standbydesc.c +++ b/src/backend/access/rmgrdesc/standbydesc.c @@ -122,8 +122,6 @@ standby_desc_invalidations(StringInfo buf, appendStringInfoString(buf, " smgr"); /* not expected, but print something anyway */ else if (msg->id == SHAREDINVALRELMAP_ID) - appendStringInfoString(buf, " relmap"); - else if (msg->id == SHAREDINVALRELMAP_ID) appendStringInfo(buf, " relmap db %u", msg->rm.dbId); else if (msg->id == SHAREDINVALSNAPSHOT_ID) appendStringInfo(buf, " snapshot %u", msg->sn.relId); --FL5UXtIhxfXey3p5 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers --FL5UXtIhxfXey3p5--