主权项 |
1. A computer-implemented method, the method comprising:
configuring a primary database in a primary database cluster to be replicated in a secondary database in a secondary database cluster; tracking, at the primary database cluster, a current statename and previous statename of the primary database, the current statename representing a current state, the previous statename representing a state immediately prior to the current state; tracking, at the secondary database cluster, a current statename and a previous statename of the secondary database; generating a new statename of the primary database when a user performs an operation on the primary database; receiving, at the secondary database cluster, a current statename and a new statename of the primary database; and determining, at the secondary database cluster, whether to reconcile the primary database to the secondary database based on a current statename of the secondary database, the current statename of the primary database, and the new statename of the primary database, and a previous statename of the secondary database. |