Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Revert "use tailing queries for initial sync"

This reverts commit 8320718.
  • Loading branch information...
commit 4697c39481ac4056d19e64017d15d74b34d533a1 1 parent 8320718
@erh erh authored
Showing with 8 additions and 1 deletion.
  1. +8 −1 db/repl/rs_sync.cpp
View
9 db/repl/rs_sync.cpp
@@ -63,7 +63,14 @@ namespace mongo {
return false;
}
- r.tailingQueryGTE(rsoplog, applyGTE);
+ {
+ BSONObjBuilder q;
+ q.appendDate("$gte", applyGTE.asDate());
+ BSONObjBuilder query;
+ query.append("ts", q.done());
+ BSONObj queryObj = query.done();
+ r.query(rsoplog, queryObj);
+ }
assert( r.haveCursor() );
{
Please sign in to comment.
Something went wrong with that request. Please try again.