I have logshipping activated and for some reason the user calls and I have to restore the database in the primary server. However the secondary server shows error message The log shipping secondary database server.database has restore threshold of 45 minutes and is out of sync. No restore was performed for 41335 minutes. Restored latency is 20 minutes. Check agent log and logshipping monitor information.
What steps do I need to follow to prevent this error message in the secondary server? Is it possible to correct the error message in the secondary server?