Skip to content
Snippets Groups Projects
  • Serge Petrenko's avatar
    4ec51b4b
    recovery: move lsn comparison after the replica_id assertion · 4ec51b4b
    Serge Petrenko authored
    It doesn't make sense to assert that replica_id is correct in a row
    after using that replica id to make some decisions based on it. Let's
    switch the order of operations: first assert that replica_id is correct,
    then compare row lsn with the already recovered one.
    
    In-scope-of #9491
    
    NO_DOC=refactoring
    NO_TEST=refactoring
    NO_CHANGELOG=refactoring
    4ec51b4b
    History
    recovery: move lsn comparison after the replica_id assertion
    Serge Petrenko authored
    It doesn't make sense to assert that replica_id is correct in a row
    after using that replica id to make some decisions based on it. Let's
    switch the order of operations: first assert that replica_id is correct,
    then compare row lsn with the already recovered one.
    
    In-scope-of #9491
    
    NO_DOC=refactoring
    NO_TEST=refactoring
    NO_CHANGELOG=refactoring