From 119dba996e6fb00ac00ec9f446e503c09ec26e99 Mon Sep 17 00:00:00 2001 From: Eliot Horowitz Date: Sat, 20 Nov 2010 00:45:54 -0500 Subject: Revert "rs fix initial sync oplog application it was grabbing the whole oplog which can be problematic and inefficient 165" This reverts commit 17338d81b063812938d656074d4ab0138a260155. --- db/repl/rs_sync.cpp | 9 +-------- 1 file changed, 1 insertion(+), 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! */ -- cgit v1.2.1