diff options
Diffstat (limited to 'src/mongo/db/cloner.cpp')
-rw-r--r-- | src/mongo/db/cloner.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/cloner.cpp b/src/mongo/db/cloner.cpp index 452916c15cf..dc9420c2e2b 100644 --- a/src/mongo/db/cloner.cpp +++ b/src/mongo/db/cloner.cpp @@ -171,7 +171,7 @@ namespace mongo { BSONObj js = tmp; - StatusWith<DiskLoc> loc = collection->insertDocument( txn, js, true ); + StatusWith<RecordId> loc = collection->insertDocument( txn, js, true ); if ( !loc.isOK() ) { error() << "error: exception cloning object in " << from_collection << ' ' << loc.toString() << " obj:" << js; @@ -540,7 +540,7 @@ namespace mongo { // We need to drop objects with duplicate _ids because we didn't do a true // snapshot and this is before applying oplog operations that occur during the // initial sync. - set<DiskLoc> dups; + set<RecordId> dups; MultiIndexBlock indexer(txn, c); if (opts.mayBeInterrupted) @@ -549,7 +549,7 @@ namespace mongo { uassertStatusOK(indexer.init(c->getIndexCatalog()->getDefaultIdIndexSpec())); uassertStatusOK(indexer.insertAllDocumentsInCollection(&dups)); - for (set<DiskLoc>::const_iterator it = dups.begin(); it != dups.end(); ++it) { + for (set<RecordId>::const_iterator it = dups.begin(); it != dups.end(); ++it) { WriteUnitOfWork wunit(txn); BSONObj id; |