diff options
author | Louis Williams <louis.williams@mongodb.com> | 2020-01-31 18:14:37 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2020-01-31 18:14:37 +0000 |
commit | df03d4ddc092ca3616575dd6ec08f7c4852d51e0 (patch) | |
tree | 386efa80673898d88ccf7f0c72d3e52c3e92f62a /src/mongo/db/catalog/index_catalog_impl.h | |
parent | f363c7a5f2db7c41a6ce1dbd25d9347964826686 (diff) | |
download | mongo-df03d4ddc092ca3616575dd6ec08f7c4852d51e0.tar.gz |
SERVER-37637 Standalone nodes should not restart in-progress two-phase index builds on startup
If a replica set node is started in standalone mode and there are
incomplete two-phase index builds, instead of restarting them, we mark
the indexes as 'frozen'. This signifies that the indexes are unusable,
and will not be rebuilt. The only option available to users is to drop
the index. This can corrupt the replica set, but modifying replicated
data in standalone mode already poses this danger.
Diffstat (limited to 'src/mongo/db/catalog/index_catalog_impl.h')
-rw-r--r-- | src/mongo/db/catalog/index_catalog_impl.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/catalog/index_catalog_impl.h b/src/mongo/db/catalog/index_catalog_impl.h index df13439ffe4..36709dba180 100644 --- a/src/mongo/db/catalog/index_catalog_impl.h +++ b/src/mongo/db/catalog/index_catalog_impl.h @@ -173,8 +173,7 @@ public: IndexCatalogEntry* createIndexEntry(OperationContext* opCtx, std::unique_ptr<IndexDescriptor> descriptor, - bool initFromDisk, - bool isReadyIndex) override; + CreateIndexEntryFlags flags) override; /** * Call this only on an empty collection from inside a WriteUnitOfWork. Index creation on an |