Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replication: correctly check for rows to skip in applier
Fix replicaset.applier.vclock initialization issues: it wasn't initialized at all previously. Moreover, there is no valid point in code to initialize it, since it may get stale right away if new entries are written to WAL. So, check for both applier and replicaset vclocks. The greater one protects the instance from applying the rows it has already applied or has already scheduled to write. Also remove an unnecessary aplier vclock initialization from replication_init(). Closes #4739
- Loading branch information