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/dbcommands.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/dbcommands.cpp')
-rw-r--r-- | src/mongo/db/commands/dbcommands.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/dbcommands.cpp b/src/mongo/db/commands/dbcommands.cpp index 5df659e062c..2190cdc3910 100644 --- a/src/mongo/db/commands/dbcommands.cpp +++ b/src/mongo/db/commands/dbcommands.cpp @@ -448,7 +448,7 @@ public: keyPattern = Helpers::inferKeyPattern(min); } - IndexDescriptor* idx = + const IndexDescriptor* idx = collection->getIndexCatalog()->findShardKeyPrefixedIndex(opCtx, keyPattern, true); // requireSingleKey |