summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2013-03-22 15:51:08 -0400
committerEliot Horowitz <eliot@10gen.com>2013-03-22 15:53:17 -0400
commit2308e25ae49bc53f4790851918f2da586eaad6a0 (patch)
tree90c8354120357eb28bec9b6affbebe644807e03b
parentce2d666c04b4a80af58e8bbb3388b0680e8cfeb6 (diff)
downloadmongo-2308e25ae49bc53f4790851918f2da586eaad6a0.tar.gz
SERVER-9087: fix initial sync ignoring updates during index creation
-rw-r--r--src/mongo/db/cloner.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/cloner.cpp b/src/mongo/db/cloner.cpp
index 26eb5baa639..233410b4590 100644
--- a/src/mongo/db/cloner.cpp
+++ b/src/mongo/db/cloner.cpp
@@ -389,6 +389,7 @@ namespace mongo {
mayInterrupt( opts.mayBeInterrupted );
dbtempreleaseif r( opts.mayYield );
+#if 0
// fetch index info
auto_ptr<DBClientCursor> cur = _conn->query(idxns.c_str(), BSONObj(), 0, 0, 0,
opts.slaveOk ? QueryOption_SlaveOk : 0 );
@@ -415,7 +416,7 @@ namespace mongo {
_sortersForNS[idxEntry["ns"].String()].insert(make_pair(idxEntry["name"].String(),
details));
}
-
+#endif
// just using exhaust for collection copying right now
// todo: if snapshot (bool param to this func) is true, we need to snapshot this query?