[CSHARP-885] Tail the oplog in C# Created: 02/Jan/14 Updated: 05/Apr/19 Resolved: 20/Mar/14 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Trivial - P5 |
| Reporter: | Ashutosh | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | driver, question | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
How can we tail the oplog in C# ? |
| Comments |
| Comment by Ashutosh [ 17/Jan/14 ] | |||||||||||||||||||||||||
|
Yes, it did. | |||||||||||||||||||||||||
| Comment by Robert Stam [ 17/Jan/14 ] | |||||||||||||||||||||||||
|
There are no plans to provide any specialized methods for tailing the oplog, other than supporting tailable cursors in general. Did the code provided in the earlier response not help you? | |||||||||||||||||||||||||
| Comment by Ashutosh [ 17/Jan/14 ] | |||||||||||||||||||||||||
|
Haven't heard anything on this from anyone. | |||||||||||||||||||||||||
| Comment by Ashutosh [ 02/Jan/14 ] | |||||||||||||||||||||||||
|
Firstly, apologies for not providing the complete code for compilation. Shouldn't there be a dedicated api which allows us to work with the oplog since it is a special collection ?
I do understand that this might be a little tricky since the schema will vary quite a bit for this collection. | |||||||||||||||||||||||||
| Comment by Robert Stam [ 02/Jan/14 ] | |||||||||||||||||||||||||
|
I would propose some changes to your sample code, as follows (a few of the changes are just so I could get it to compile without having the rest of your code):
Notes:
Note: Edited because I forgot the call to SetFlags and SetSortOrder. I don't think NoCursorTimeout is needed with tailable cursors. |