Skip to content

Instantly share code, notes, and snippets.

@atharvai
Last active February 3, 2019 09:13
Show Gist options
  • Save atharvai/f6083b842f81384ac37f0f0a4f624535 to your computer and use it in GitHub Desktop.
Save atharvai/f6083b842f81384ac37f0f0a4f624535 to your computer and use it in GitHub Desktop.
field optional description
ts N BSON Timestamp. Often converted to 64bit INT for JSON
h Y Random hash
v N oplog protocol version. default 1.
op N Type of op. one of i, u, d, n, c
ns N BSON Namespacestring. Serialised as db.collection
o N Operation applied. object
o2 Y Object 2. Additional information, usually operand
fromMigrate Y Boolean. Indicates if this operation is part of chunk migration between shards

source: https://github.com/mongodb/mongo/blob/master/src/mongo/db/repl/oplog_entry.idl

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