Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-91175

Consolidate restore state into helper function

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication

      We've had to add a few checks about a node is in magic restore state (example and example). There are some places where we're checking for both magic restore and shouldRecoverFromOplogAsStandalone. We should try to consolidate the states into a helper function (something like "inRestoreState"), so that the restore state is further abstracted from code that doesn't need to know about it.

            Assignee:
            Unassigned Unassigned
            Reporter:
            ali.mir@mongodb.com Ali Mir
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: