diff options
author | Louis Williams <louis.williams@mongodb.com> | 2019-01-02 16:48:56 -0500 |
---|---|---|
committer | Louis Williams <louis.williams@mongodb.com> | 2019-01-17 11:35:32 -0500 |
commit | e12dcc7fdbdb44fb7806dfb42a49bd740f361d82 (patch) | |
tree | d23cdd47b52a10b5100598a8f6464febf8ec9b80 /src/mongo/db/catalog/index_catalog_impl.h | |
parent | 7edc50cf214893688eb8432619e4a8bba18d107b (diff) | |
download | mongo-e12dcc7fdbdb44fb7806dfb42a49bd740f361d82.tar.gz |
SERVER-37270 Remove foreground index builds by default
Diffstat (limited to 'src/mongo/db/catalog/index_catalog_impl.h')
-rw-r--r-- | src/mongo/db/catalog/index_catalog_impl.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/catalog/index_catalog_impl.h b/src/mongo/db/catalog/index_catalog_impl.h index da755206ba8..36d9e8c41e4 100644 --- a/src/mongo/db/catalog/index_catalog_impl.h +++ b/src/mongo/db/catalog/index_catalog_impl.h @@ -249,7 +249,8 @@ public: IndexBuildBlock(OperationContext* opCtx, Collection* collection, IndexCatalogImpl* catalog, - const BSONObj& spec); + const BSONObj& spec, + IndexBuildMethod method); ~IndexBuildBlock(); @@ -288,6 +289,7 @@ public: const std::string _ns; BSONObj _spec; + IndexBuildMethod _method; std::string _indexName; std::string _indexNamespace; @@ -336,7 +338,7 @@ public: } std::unique_ptr<IndexCatalog::IndexBuildBlockInterface> createIndexBuildBlock( - OperationContext* opCtx, const BSONObj& spec) override; + OperationContext* opCtx, const BSONObj& spec, IndexBuildMethod method) override; std::string::size_type getLongestIndexNameLength(OperationContext* opCtx) const override; |