Permalink
Browse files

use tailing queries for initial sync

  • Loading branch information...
1 parent a85dd52 commit 83207189ea7c6b594c948cc27b8ae25356d79b77 @kchodorow kchodorow committed Jul 25, 2011
Showing with 1 addition and 8 deletions.
  1. +1 −8 db/repl/rs_sync.cpp
View
@@ -63,14 +63,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.tailingQueryGTE(rsoplog, applyGTE);
assert( r.haveCursor() );
{

0 comments on commit 8320718

Please sign in to comment.