summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-11-20 00:45:54 -0500
committerEliot Horowitz <eliot@10gen.com>2010-11-20 00:45:54 -0500
commit119dba996e6fb00ac00ec9f446e503c09ec26e99 (patch)
tree86ed9f3d29d24d818d579b5ad80af4eb53d353f8
parent269c53e84b5e37597b013edadb93ba028ddb3ee3 (diff)
downloadmongo-119dba996e6fb00ac00ec9f446e503c09ec26e99.tar.gz
Revert "rs fix initial sync oplog application it was grabbing the whole oplog which can be problematic and inefficient 165"
This reverts commit 17338d81b063812938d656074d4ab0138a260155.
-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! */