diff options
Diffstat (limited to 'src/mongo/db/pdfile.cpp')
-rw-r--r-- | src/mongo/db/pdfile.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/mongo/db/pdfile.cpp b/src/mongo/db/pdfile.cpp index d592991a014..8331fc87006 100644 --- a/src/mongo/db/pdfile.cpp +++ b/src/mongo/db/pdfile.cpp @@ -45,6 +45,7 @@ _ disallow system* manipulations from the database. #include "mongo/db/db.h" #include "mongo/db/dbhelpers.h" #include "mongo/db/extsort.h" +#include "mongo/db/index_legacy.h" #include "mongo/db/index_names.h" #include "mongo/db/index_update.h" #include "mongo/db/index/catalog_hack.h" @@ -1531,13 +1532,7 @@ namespace mongo { tableToIndex->addIndex(tabletoidxns.c_str()); getDur().writingInt(tableToIndex->indexBuildsInProgress) -= 1; - // If it's an FTS index, we want to set the power of 2 flag. - string pluginName = KeyPattern::findPluginName(idx.keyPattern()); - if (IndexNames::TEXT == pluginName || IndexNames::TEXT_INTERNAL == pluginName) { - if (tableToIndex->setUserFlag(NamespaceDetails::Flag_UsePowerOf2Sizes)) { - tableToIndex->syncUserFlags(idx.parentNS()); - } - } + IndexLegacy::postBuildHook(tableToIndex, idx); } catch (...) { // Generally, this will be called as an exception from building the index bubbles up. |