From the URL below about "How Synchronization Works on a Secondary Replica" , It describes that "Once the hardened log on the secondary database has caught up the end of log on the primary database, the state of the secondary database is set to SYNCHRONIZED. "
My question is how does the secondary database know that it has caught up the end of log on the primary database?
Suppose there are five transaction log records in primary database, and three of them transfered to the secondary database, how does the secondary database confirm that there are two remains log records haven't arrive? Even if all of the five records transfered to the secondary database, how does it know there is no log records left in the primary database ?
Please click the Mark as Answer button if a post solves your problem!