Remove redundant HandleWalWriterInterrupts()

Started by Fujii Masaoalmost 3 years ago4 messageshackers
Jump to latest
#1Fujii Masao
masao.fujii@gmail.com

Hi,

Because of commit 1bdd54e662, the code of HandleWalWriterInterrupts()
became the same as HandleMainLoopInterrupts(). So I'd like to propose to
remove HandleWalWriterInterrupts() and make walwriter use
HandleMainLoopInterrupts() instead for improved code simplicity. Thought?

Patch attached.

Regards,

--
Fujii Masao

Attachments:

v1-0001-Remove-redundant-HandleWalWriterInterrupts.patchapplication/octet-stream; name=v1-0001-Remove-redundant-HandleWalWriterInterrupts.patchDownload+1-28
#2Bharath Rupireddy
bharath.rupireddyforpostgres@gmail.com
In reply to: Fujii Masao (#1)
Re: Remove redundant HandleWalWriterInterrupts()

On Wed, Jan 24, 2024 at 5:50 PM Fujii Masao <masao.fujii@gmail.com> wrote:

Hi,

Because of commit 1bdd54e662, the code of HandleWalWriterInterrupts()
became the same as HandleMainLoopInterrupts(). So I'd like to propose to
remove HandleWalWriterInterrupts() and make walwriter use
HandleMainLoopInterrupts() instead for improved code simplicity. Thought?

Patch attached.

Nice catch. Indeed they both are the same after commit 1bdd54e662. The
patch LGTM.

--
Bharath Rupireddy
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com

#3Nathan Bossart
nathandbossart@gmail.com
In reply to: Bharath Rupireddy (#2)
Re: Remove redundant HandleWalWriterInterrupts()

On Wed, Jan 24, 2024 at 07:30:17PM +0530, Bharath Rupireddy wrote:

On Wed, Jan 24, 2024 at 5:50 PM Fujii Masao <masao.fujii@gmail.com> wrote:

Because of commit 1bdd54e662, the code of HandleWalWriterInterrupts()
became the same as HandleMainLoopInterrupts(). So I'd like to propose to
remove HandleWalWriterInterrupts() and make walwriter use
HandleMainLoopInterrupts() instead for improved code simplicity. Thought?

Patch attached.

Nice catch. Indeed they both are the same after commit 1bdd54e662. The
patch LGTM.

LGTM, too.

--
Nathan Bossart
Amazon Web Services: https://aws.amazon.com

#4Fujii Masao
masao.fujii@gmail.com
In reply to: Nathan Bossart (#3)
Re: Remove redundant HandleWalWriterInterrupts()

On Thu, Jan 25, 2024 at 4:40 AM Nathan Bossart <nathandbossart@gmail.com> wrote:

On Wed, Jan 24, 2024 at 07:30:17PM +0530, Bharath Rupireddy wrote:

On Wed, Jan 24, 2024 at 5:50 PM Fujii Masao <masao.fujii@gmail.com> wrote:

Because of commit 1bdd54e662, the code of HandleWalWriterInterrupts()
became the same as HandleMainLoopInterrupts(). So I'd like to propose to
remove HandleWalWriterInterrupts() and make walwriter use
HandleMainLoopInterrupts() instead for improved code simplicity. Thought?

Patch attached.

Nice catch. Indeed they both are the same after commit 1bdd54e662. The
patch LGTM.

LGTM, too.

Thank you both for reviewing! I've pushed the patch.

Regards,

--
Fujii Masao