Permalink
Browse files

SERVER-8685 - use old style append for OpTime

  • Loading branch information...
1 parent 32fe4cd commit 4873c2bd64b71af9713eb75b222a7e13c6c4e747 @monkey101 monkey101 committed Mar 15, 2013
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());

0 comments on commit 4873c2b

Please sign in to comment.