Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

SERVER-8685 Fix gcc compile

  • Loading branch information...
commit 32fe4cd8fd541e0c14fd28ac17096e9ff76ba726 1 parent 49cb7ca
Tad Marshall tadmarshall authored monkey101 committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/mongo/tools/restore.cpp
4 src/mongo/tools/restore.cpp
View
@@ -177,13 +177,13 @@ class Restore : public BSONTool {
}
BSONObjBuilder tsRestrictBldr;
- if (tsOptime != NULL)
+ if (!tsOptime.isNull())
tsRestrictBldr << "$gt" << tsOptime;
tsRestrictBldr << "$lt" << *_oplogLimitTS.get();
BSONObj query = BSON("ts" << tsRestrictBldr.obj());
- if (tsOptime != NULL) {
+ if (!tsOptime.isNull()) {
log() << "Latest oplog entry on the server is " << tsOptime.getSecs()
<< ":" << tsOptime.getInc() << endl;
log() << "Only applying oplog entries matching this criteria: "
Please sign in to comment.
Something went wrong with that request. Please try again.