Skip to content

Instantly share code, notes, and snippets.

@danared
Created April 2, 2015 22:01
Show Gist options
  • Save danared/72ede9b8ce6f50c082fa to your computer and use it in GitHub Desktop.
Save danared/72ede9b8ce6f50c082fa to your computer and use it in GitHub Desktop.
shard02:PRIMARY> use local
switched to db local
shard02:PRIMARY> db.oplog.rs.find().pretty()
{
"ts" : Timestamp(1422998531, 1),
"h" : NumberLong(0),
"v" : 2,
"op" : "n",
"ns" : "",
"o" : {
"msg" : "initiating set"
}
}
{
"ts" : Timestamp(1422998890, 1),
"h" : NumberLong("-6780991630754185199"),
"v" : 2,
"op" : "i",
"ns" : "test.system.indexes",
"fromMigrate" : true,
"o" : {
"v" : 1,
"key" : {
"_id" : 1
},
"name" : "_id_",
"ns" : "test.mycollection"
}
}
{
"ts" : Timestamp(1422998890, 2),
"h" : NumberLong("-165956952201849851"),
"v" : 2,
"op" : "i",
"ns" : "test.mycollection",
"fromMigrate" : true,
"o" : {
"_id" : 1,
"data" : "hello"
}
}
{
"ts" : Timestamp(1422998890, 3),
"h" : NumberLong("-7432242710082771022"),
"v" : 2,
"op" : "i",
"ns" : "test.mycollection",
"fromMigrate" : true,
"o" : {
"_id" : 3,
"data" : "hello"
}
}
{
"ts" : Timestamp(1422998890, 4),
"h" : NumberLong("6790671206092100026"),
"v" : 2,
"op" : "i",
"ns" : "test.mycollection",
"fromMigrate" : true,
"o" : {
"_id" : 5,
"data" : "hello"
}
}
{
"ts" : Timestamp(1422999414, 1),
"h" : NumberLong("8160426227798471967"),
"v" : 2,
"op" : "i",
"ns" : "test.mycollection",
"o" : {
"_id" : 2,
"data" : "hello"
}
}
{
"ts" : Timestamp(1422999419, 1),
"h" : NumberLong("-3554656302824563522"),
"v" : 2,
"op" : "i",
"ns" : "test.mycollection",
"o" : {
"_id" : 4,
"data" : "hello"
}
}
shard02:PRIMARY>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment