diff options
author | Louis Williams <louis.williams@mongodb.com> | 2018-11-12 12:04:25 -0500 |
---|---|---|
committer | Louis Williams <louis.williams@mongodb.com> | 2018-12-19 19:22:55 -0500 |
commit | 145078f2e5076fb4a032d36d30b7c71b33706802 (patch) | |
tree | d1909714d54286ae78ed17d404413d630b1633b1 /src/mongo/db/commands/mr.cpp | |
parent | 51ab5eb0c500d0013ac6265de40ab7dbc3d52131 (diff) | |
download | mongo-145078f2e5076fb4a032d36d30b7c71b33706802.tar.gz |
SERVER-38091 IndexCatalog iterators and accessors should return const entries
Diffstat (limited to 'src/mongo/db/commands/mr.cpp')
-rw-r--r-- | src/mongo/db/commands/mr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/commands/mr.cpp b/src/mongo/db/commands/mr.cpp index 0c3110cb97b..6d3ad0e9a50 100644 --- a/src/mongo/db/commands/mr.cpp +++ b/src/mongo/db/commands/mr.cpp @@ -536,7 +536,7 @@ void State::prepTempCollection() { finalColl->getIndexCatalog()->getIndexIterator(_opCtx, true); // Iterate over finalColl's indexes. while (ii->more()) { - IndexDescriptor* currIndex = ii->next()->descriptor(); + const IndexDescriptor* currIndex = ii->next()->descriptor(); BSONObjBuilder b; b.append("ns", _config.tempNamespace.ns()); @@ -1124,7 +1124,7 @@ void State::finalReduce(OperationContext* opCtx, CurOp* curOp, ProgressMeterHold autoIncColl.getCollection()->getIndexCatalog()->getIndexIterator(_opCtx, true); // Iterate over incColl's indexes. while (ii->more()) { - IndexDescriptor* currIndex = ii->next()->descriptor(); + const IndexDescriptor* currIndex = ii->next()->descriptor(); BSONObj x = currIndex->infoObj(); if (sortKey.woCompare(x["key"].embeddedObject()) == 0) { foundIndex = true; |