summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/index_consistency.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/catalog/index_consistency.cpp')
-rw-r--r--src/mongo/db/catalog/index_consistency.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/catalog/index_consistency.cpp b/src/mongo/db/catalog/index_consistency.cpp
index 1ff0f14d65a..0c61691fa7d 100644
--- a/src/mongo/db/catalog/index_consistency.cpp
+++ b/src/mongo/db/catalog/index_consistency.cpp
@@ -40,6 +40,7 @@
#include "mongo/db/index/index_descriptor.h"
#include "mongo/db/index_names.h"
#include "mongo/db/server_options.h"
+#include "mongo/db/storage/durable_catalog.h"
#include "mongo/db/storage/key_string.h"
#include "mongo/db/storage/record_store.h"
#include "mongo/db/storage/sorted_data_interface.h"
@@ -87,7 +88,7 @@ IndexConsistency::IndexConsistency(OperationContext* opCtx,
indexInfo.indexName = indexName;
indexInfo.keyPattern = descriptor->keyPattern();
- indexInfo.isReady = _collection->getCatalogEntry()->isIndexReady(opCtx, indexName);
+ indexInfo.isReady = DurableCatalog::get(opCtx)->isIndexReady(opCtx, nss, indexName);
uint32_t indexNameHash;
MurmurHash3_x86_32(indexName.c_str(), indexName.size(), 0, &indexNameHash);