Skip to content

Add oplog_replay to available query options - #145

Closed
poudro wants to merge 1 commit into
mongodb:masterfrom
poudro:master
Closed

poudro wants to merge 1 commit into
mongodb:masterfrom
poudro:master

Conversation

@poudro

@poudro poudro commented Nov 7, 2012

Copy link
Copy Markdown

When dealing with the oplog, it is very useful to be able to switch on the "oplog_replay" (bit num 3 in http://www.mongodb.org/display/DOCS/Mongo+Wire+Protocol#MongoWireProtocol-OPQUERY) to perform queries on fields of the oplog (eg the "ts" field).

This is a tiny patch which shouldn't affect anything outside of cursor.py.

Thx for considering this :)

@behackett

Copy link
Copy Markdown
Member

Hi

We intentionally don't expose the OplogReplay flag as it only works with mongod's internal replication system. If you really want to use it you can call Cursor.add_option(8) instead.

@behackett behackett closed this Nov 7, 2012
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.

2 participants