From f0d9a01bccdaeb466c12c92057914bbfef59526c Mon Sep 17 00:00:00 2001 From: Antonin Kral Date: Thu, 15 Dec 2011 09:35:47 +0100 Subject: Imported Upstream version 2.0.2 --- db/cloner.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'db/cloner.cpp') diff --git a/db/cloner.cpp b/db/cloner.cpp index 8956133..f13ea52 100644 --- a/db/cloner.cpp +++ b/db/cloner.cpp @@ -83,6 +83,12 @@ namespace mongo { BSONElement e = i.next(); if ( e.eoo() ) break; + + // for now, skip the "v" field so that v:0 indexes will be upgraded to v:1 + if ( string("v") == e.fieldName() ) { + continue; + } + if ( string("ns") == e.fieldName() ) { uassert( 10024 , "bad ns field for index during dbcopy", e.type() == String); const char *p = strchr(e.valuestr(), '.'); -- cgit v1.2.3