Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix duplicated rows #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Tolsto
Copy link

@Tolsto Tolsto commented Jan 30, 2021

Description of change

Query oplog with 'gt' instead of 'gte'.
Querying with 'gte' will lead to duplicated rows if the last
oplog entry is for a collection that is supposed to be replicated.
Because of the change done in efd5e0f
this will not happen for every sync as it's quite likely that the last
oplog entry references a modification in a different collection.

QA steps

  • automated tests passing
  • manual qa steps passing (list below)

Risks

Rollback steps

  • revert this branch

Querying with 'gte' will lead to duplicated rows if the last
oplog entry is for a collection that is supposed to be replicated.
Because of the change done in efd5e0f
this will not happen for every sync as it's quite likely that the last
oplog entry references a modification in a different collection.
@cmerrick
Copy link

Hi @Tolsto, thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants