-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Labels:
-
Environment:Ubuntu 14.04, node 0.10.25, mongodb 3.0.5, nodejs mongodb 2.0.42
-
Empty show more show less
Hello,
I'm unable to tail oplog with a timestamp received from last oplog entry.
I first retrieve the last oplog entry
db.collection("oplog.rs", function(err, oplog) {
// Find the highest timestamp
oplog.find({},
).sort(
{ $natural: -1 }).limit(1).toArray(function(err, data) {
Then if I use
lastOplogTime = data[0].ts;
for my awaitData cursor I receive no data.
If I use
lastOplogTime = new MongoDB.Timestamp(data[0].ts.low, data[0].ts.high);
it works perfectly.
Any idea ?