summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db/repl/rs_sync.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/db/repl/rs_sync.cpp b/db/repl/rs_sync.cpp
index 9de3f60f286..9ea65cfe35b 100644
--- a/db/repl/rs_sync.cpp
+++ b/db/repl/rs_sync.cpp
@@ -70,14 +70,7 @@ namespace mongo {
return false;
}
- {
- BSONObjBuilder q;
- q.appendDate("$gte", applyGTE.asDate());
- BSONObjBuilder query;
- query.append("ts", q.done());
- BSONObj queryObj = query.done();
- r.query(rsoplog, queryObj);
- }
+ r.query(rsoplog, bo());
assert( r.haveCursor() );
/* we lock outside the loop to avoid the overhead of locking on every operation. server isn't usable yet anyway! */