Refactor status detection for XLOG segment file in xlogarchive.c (Was: *FF WALs under 9.2) - Mailing list pgsql-hackers

From Michael Paquier
Subject Refactor status detection for XLOG segment file in xlogarchive.c (Was: *FF WALs under 9.2)
Date
Msg-id CAB7nPqShV5N2iUZsyrv24A7iHTU_e1bHjn-GwMqO4q8oiH2k=w@mail.gmail.com
Whole thread Raw
List pgsql-hackers
Hi all,

Except if I am missing something, is there any reason why the sequence used in XLogArchiveCheckDone and XLogArchiveIsBusy to check if a XLOG segment has been already archived is duplicated? I guess that doing a little bit of refactoring here would make sense for simplicity, patch is attached.
Regards,
--
Michael
Attachment

pgsql-hackers by date:

Previous
From: Rushabh Lathia
Date:
Subject: Re: alter user/role CURRENT_USER
Next
From: Michael Paquier
Date:
Subject: Re: agent_init concurrent running question