Force archive_status of .done for xlogs created by dearchival/replication.
authorSimon Riggs <simon@2ndQuadrant.com>
Wed, 8 Aug 2012 22:58:49 +0000 (23:58 +0100)
committerSimon Riggs <simon@2ndQuadrant.com>
Wed, 8 Aug 2012 22:58:49 +0000 (23:58 +0100)
commit6f4b8a4f4f7a2d683ff79ab59d3693714b965e3d
tree32f13502ec48c0fd6c07af0b182eb372b95ded7c
parent7c055d64a6c541f8480abd5833321e1661e10bce
Force archive_status of .done for xlogs created by dearchival/replication.
This prevents spurious attempts to archive xlog files after promotion of
standby, a bug introduced by cascading replication patch in 9.2.

Fujii Masao, simplified and extended to cover streaming by Simon Riggs
src/backend/access/transam/xlog.c
src/backend/replication/walreceiver.c
src/include/access/xlog_internal.h