diff options
author | Eliot Horowitz <eliot@10gen.com> | 2013-11-02 13:31:16 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2013-11-02 13:31:16 -0400 |
commit | ac7b0f59ee5ee58a27d1927047426a2d0d354e4e (patch) | |
tree | b35e99a962e28352073499e71357e08b3a662d39 /src/mongo/db/index_legacy.cpp | |
parent | f4752b153a3294bd6dfbfb3b626526c7baf7f90e (diff) | |
download | mongo-ac7b0f59ee5ee58a27d1927047426a2d0d354e4e.tar.gz |
SERVER-11178: index building now all with IndexCatalog, CatalogHack out of all new paths
Diffstat (limited to 'src/mongo/db/index_legacy.cpp')
-rw-r--r-- | src/mongo/db/index_legacy.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/index_legacy.cpp b/src/mongo/db/index_legacy.cpp index ef98839c29c..3692f0fd7d3 100644 --- a/src/mongo/db/index_legacy.cpp +++ b/src/mongo/db/index_legacy.cpp @@ -87,9 +87,9 @@ namespace mongo { } // static - void IndexLegacy::postBuildHook(Collection* collection, IndexDescriptor* desc) { + void IndexLegacy::postBuildHook(Collection* collection, const BSONObj& keyPattern) { // If it's an FTS index, we want to set the power of 2 flag. - string pluginName = collection->getIndexCatalog()->getAccessMethodName(desc->keyPattern()); + string pluginName = collection->getIndexCatalog()->getAccessMethodName(keyPattern); if (IndexNames::TEXT == pluginName || IndexNames::TEXT_INTERNAL == pluginName) { NamespaceDetails* nsd = collection->details(); if (nsd->setUserFlag(NamespaceDetails::Flag_UsePowerOf2Sizes)) { |