Permalink
Browse files

SERVER-8685 Fix gcc compile

  • Loading branch information...
1 parent 49cb7ca commit 32fe4cd8fd541e0c14fd28ac17096e9ff76ba726 @tadmarshall tadmarshall committed with monkey101 Mar 1, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/mongo/tools/restore.cpp
@@ -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: "

0 comments on commit 32fe4cd

Please sign in to comment.