|
I just saw that the Oplog record isn't created if I execute the command for the local db, but it's created if I execute it for some other db:
bbbb:PRIMARY> db.runCommand({"applyOps":[{ "ts" : Timestamp(1382985958, 1), "h" : NumberLong("-1797539322905744578"), "v" : 2, "op" : "i", "ns" : "test.collection", "o" : { "_id" : ObjectId("526eb0e682a153834ab771e8"), "b" : 1 } }]})
|
{ "applied" : 1, "results" : [ true ], "ok" : 1 }
|
bbbb:PRIMARY> use local
|
switched to db local
|
bbbb:PRIMARY> db.oplog.rs.find()
|
{ "ts" : Timestamp(1382984560, 1), "h" : NumberLong(0), "v" : 2, "op" : "n", "ns" : "", "o" : { "msg" : "initiating set" } }
|
{ "ts" : Timestamp(1382987681, 1), "h" : NumberLong("2662222984365773812"), "v" : 2, "op" : "c", "ns" : "test.$cmd", "o" : { "applyOps" : [ { "ts" : Timestamp(1382985958, 1), "h" : NumberLong("-1797539322905744578"), "v" : 2, "op" : "i", "ns" : "test.collection", "o" : { "_id" : ObjectId("526eb0e682a153834ab771e8"), "b" : 1 } } ] } }
|
|