summaryrefslogtreecommitdiff
path: root/src/mongo/db/index_legacy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/index_legacy.cpp')
-rw-r--r--src/mongo/db/index_legacy.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/mongo/db/index_legacy.cpp b/src/mongo/db/index_legacy.cpp
index 8d63ce1cbe3..0973132f61d 100644
--- a/src/mongo/db/index_legacy.cpp
+++ b/src/mongo/db/index_legacy.cpp
@@ -81,16 +81,4 @@ namespace mongo {
}
}
- // static
- 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(keyPattern);
- if (IndexNames::TEXT == pluginName) {
- NamespaceDetails* nsd = collection->details();
- if (nsd->setUserFlag(NamespaceDetails::Flag_UsePowerOf2Sizes)) {
- nsd->syncUserFlags(collection->ns().ns());
- }
- }
- }
-
} // namespace mongo