diff options
author | Eliot Horowitz <eliot@10gen.com> | 2014-08-25 17:25:39 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2014-08-25 18:08:37 -0400 |
commit | f0bb5123f50bb617eb9499539f01779c6e9f5e95 (patch) | |
tree | 98cc4abf3c89881691158345435523c5dd6ae37f /src/mongo/tools | |
parent | cb3f5cfa43d9565675d2f36c4b0f7cecbad47a49 (diff) | |
download | mongo-f0bb5123f50bb617eb9499539f01779c6e9f5e95.tar.gz |
SERVER-13635: OperationContext on read paths
Diffstat (limited to 'src/mongo/tools')
-rw-r--r-- | src/mongo/tools/dump.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/tools/dump.cpp b/src/mongo/tools/dump.cpp index d02a4812f4f..8614b408f49 100644 --- a/src/mongo/tools/dump.cpp +++ b/src/mongo/tools/dump.cpp @@ -303,7 +303,7 @@ public: BSONObj obj; try { - obj = coll->docFor(currLoc); + obj = coll->docFor(opCtx, currLoc); // If this is a corrupted object, just skip it, but do not abort the scan // @@ -343,8 +343,8 @@ public: string ns, boost::filesystem::path outfile) { Collection* collection = db->getCollection(opCtx, ns); - toolInfoLog() << "nrecords: " << collection->numRecords() - << " datasize: " << collection->dataSize() + toolInfoLog() << "nrecords: " << collection->numRecords(opCtx) + << " datasize: " << collection->dataSize(opCtx) << std::endl; outfile /= ( ns.substr( ns.find( "." ) + 1 ) + ".bson" ); @@ -353,7 +353,7 @@ public: FilePtr f (fopen(outfile.string().c_str(), "wb")); // init with double the docs count because we make two passes - ProgressMeter m( collection->numRecords() * 2 ); + ProgressMeter m( collection->numRecords(opCtx) * 2 ); m.setName("Repair Progress"); m.setUnits("documents"); |