summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/index_catalog_entry_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/catalog/index_catalog_entry_impl.h')
-rw-r--r--src/mongo/db/catalog/index_catalog_entry_impl.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mongo/db/catalog/index_catalog_entry_impl.h b/src/mongo/db/catalog/index_catalog_entry_impl.h
index 0b1b7b6f2bd..88a5d666888 100644
--- a/src/mongo/db/catalog/index_catalog_entry_impl.h
+++ b/src/mongo/db/catalog/index_catalog_entry_impl.h
@@ -216,12 +216,9 @@ private:
// member is effectively const after IndexCatalogEntry::init() is called.
bool _indexTracksMultikeyPathsInCatalog = false;
- // Set to true if this index may contain multikey data.
- AtomicWord<bool> _isMultikeyForRead;
-
- // Set to true after a transaction commit successfully updates multikey on the catalog data. At
- // this point, future writers do not need to update the catalog.
- AtomicWord<bool> _isMultikeyForWrite;
+ // Set to true if this index is multikey. '_isMultikey' serves as a cache of the information
+ // stored in the NamespaceDetails or DurableCatalog.
+ AtomicWord<bool> _isMultikey;
// Controls concurrent access to '_indexMultikeyPaths'. We acquire this mutex rather than the
// RESOURCE_METADATA lock as a performance optimization so that it is cheaper to detect whether