Skip to content
Snippets Groups Projects
  1. May 16, 2012
  2. May 15, 2012
  3. May 14, 2012
  4. May 13, 2012
  5. May 12, 2012
  6. May 11, 2012
  7. May 10, 2012
  8. May 09, 2012
  9. May 08, 2012
  10. May 06, 2012
  11. May 05, 2012
  12. May 04, 2012
    • Konstantin Osipov's avatar
    • Konstantin Osipov's avatar
      Clean up recover(). · 7659b567
      Konstantin Osipov authored
      recover() panics if things go wrong: don't
      return any  value from it (until we fix it to not panic).
      
      In recover() current_wal is always NULL, since we run
      it right after start (or after establishing a connection
      with a replica). Don't check for current_wal.
      
      Don't produce a stupid error message "can't find WAL
      with LSN:" when recovering from a snapshot, and a snapshot
      is all we have in the data directory.
      
      We (ab)use recover() and recover_remaining_wals() in
      replication and in initial recovery, without doing the
      abstraction homework, and this leads to convoluted
      code and redundant logic.
      7659b567
Loading