Remove redundant Assert(PgArchPID == 0); in PostmasterStateMachine

From: Bharath Rupireddy <bharath(dot)rupireddyforpostgres(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Remove redundant Assert(PgArchPID == 0); in PostmasterStateMachine
Date: 2021-07-14 18:08:59
Message-ID: CALj2ACW=CYE1ars+2XyPTEPq0wQvru4c0dPZ=Nrn3EqNBkksvQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

It looks like the commit d75288fb [1] added an unnecessary
Assert(PgArchPID == 0); in PostmasterStateMachine as the if block code
gets hit only when PgArchPID == 0. PSA small patch.

[1]
commit d75288fb27b8fe0a926aaab7d75816f091ecdc27
Author: Fujii Masao <fujii(at)postgresql(dot)org>
Date: Mon Mar 15 13:13:14 2021 +0900

Make archiver process an auxiliary process.

Regards,
Bharath Rupireddy.

Attachment Content-Type Size
v1-0001-Remove-redundant-Assert-PgArchPID-0-inPostmasterS.patch application/octet-stream 956 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jacob Champion 2021-07-14 18:23:59 Re: PROXY protocol support
Previous Message Tom Lane 2021-07-14 18:02:18 Re: [HACKERS] Preserving param location