Skip to content

Conversation

@timvaillancourt
Copy link
Contributor

This PR fixes an issue with .OpenAt in internal/oplog/oplog_tail.go where it will start at the doc AFTER the provided time+counter instead of including the starting doc.

This change adds a 'start' bson.MongoTimestamp and the support for .tailQuery() to use that time using a "$gte" operation instead of "$gt" that the 'last' timestamp uses. This will also allow us to see the start and end time of the tailer.

Lastly, I removed passing the *mgo.Collection to .tailQuery() as this isn't used anymore.

@timvaillancourt timvaillancourt merged commit 84700c4 into master Jul 18, 2018
@timvaillancourt timvaillancourt deleted the oplog_tail_openat_gte_startTs branch July 18, 2018 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant