This new method cannot be used as intended to allow a single operation to wait and perform the commit, since commit is not allowed while the logreceiver is connected.
Use waitForFailoverFromMasterUpToSeconds:, stop the log receiver, and then commitRestore.
Last updated: 7/17/23