Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

SERVER-8685 - use old style append for OpTime

  • Loading branch information...
commit 4873c2bd64b71af9713eb75b222a7e13c6c4e747 1 parent 32fe4cd
@monkey101 monkey101 authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/mongo/tools/restore.cpp
View
4 src/mongo/tools/restore.cpp
@@ -178,8 +178,8 @@ class Restore : public BSONTool {
BSONObjBuilder tsRestrictBldr;
if (!tsOptime.isNull())
- tsRestrictBldr << "$gt" << tsOptime;
- tsRestrictBldr << "$lt" << *_oplogLimitTS.get();
+ tsRestrictBldr.appendTimestamp("$gt", tsOptime.asDate());
+ tsRestrictBldr.appendTimestamp("$lt", _oplogLimitTS->asDate());
BSONObj query = BSON("ts" << tsRestrictBldr.obj());
Please sign in to comment.
Something went wrong with that request. Please try again.