diff options
Diffstat (limited to 'src/mongo/db/catalog/index_catalog_entry.h')
-rw-r--r-- | src/mongo/db/catalog/index_catalog_entry.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/catalog/index_catalog_entry.h b/src/mongo/db/catalog/index_catalog_entry.h index 192788e3948..1e52a6ac447 100644 --- a/src/mongo/db/catalog/index_catalog_entry.h +++ b/src/mongo/db/catalog/index_catalog_entry.h @@ -207,6 +207,10 @@ public: _entries.push_back(std::move(entry)); } + std::vector<std::shared_ptr<const IndexCatalogEntry>> getAllEntries() const { + return {_entries.begin(), _entries.end()}; + } + private: std::vector<std::shared_ptr<IndexCatalogEntry>> _entries; }; |