• A
    Fix promotion for master standby and segment mirrors · 695a55cb
    Asim R P 提交于
    As a followup to the removal of multipass logic in commit 813b817c:
    
    * Make sure that recovery.conf file does not exist after promotion.
      The file is renamed to recovery.done, like in upstream.
    
    * Update gp_segment_configuration after promotion only if we are a
      master's standby.
    
    * We can't actually access the catalog without some more
      initialization. Pull as much initialization from the old Pass4 as
      possible -- some of it is likely not needed, but this seems to get
      things working for now.
    
    Author: Asim R P <apraveen@pivotal.io>
    Author: Jacob Champion <pchampion@pivotal.io>
    695a55cb
xlog.c 331.3 KB