summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2010-03-29 16:35:06 -0700
committerAaron <aaron@10gen.com>2010-03-29 23:25:17 -0700
commit3e286b07bb93b949069a7150cbe1566cf22559c4 (patch)
treec35e36edc10731045884acacb8c913cda0ac98f3
parent1cab1d1c7c3fbf0e166c7fd6ffbdefbb66ba8dd5 (diff)
downloadmongo-3e286b07bb93b949069a7150cbe1566cf22559c4.tar.gz
SERVER-841 don't use dummy op when figuring other side's log endpoint
-rw-r--r--db/repl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/repl.cpp b/db/repl.cpp
index 043e0394920..33436a3aef5 100644
--- a/db/repl.cpp
+++ b/db/repl.cpp
@@ -732,7 +732,7 @@ namespace mongo {
( replPair && replSettings.fastsync ) ) {
DBDirectClient c;
if ( c.exists( "local.oplog.$main" ) ) {
- BSONObj op = c.findOne( "local.oplog.$main", Query().sort( BSON( "$natural" << -1 ) ) );
+ BSONObj op = c.findOne( "local.oplog.$main", QUERY( "op" << NE << "n" ).sort( BSON( "$natural" << -1 ) ) );
if ( !op.isEmpty() ) {
tmp.syncedTo = op[ "ts" ].date();
tmp._lastSavedLocalTs = op[ "ts" ].date();