diff options
author | James Wahlin <james.wahlin@10gen.com> | 2015-09-30 17:41:56 -0400 |
---|---|---|
committer | James Wahlin <james.wahlin@10gen.com> | 2015-10-07 15:42:22 -0400 |
commit | ec97a61067e2dc3f9c4e58a9d66b5e1f2600f978 (patch) | |
tree | 40c67ec652a87b17b794a8ba5fc5aa3b4fc3e99e /src/mongo/db/catalog/index_catalog.cpp | |
parent | 33167b814bb9d8962205a85fed34c9d88942db83 (diff) | |
download | mongo-ec97a61067e2dc3f9c4e58a9d66b5e1f2600f978.tar.gz |
SERVER-20520 Include index key in $indexStats return documents
Diffstat (limited to 'src/mongo/db/catalog/index_catalog.cpp')
-rw-r--r-- | src/mongo/db/catalog/index_catalog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/catalog/index_catalog.cpp b/src/mongo/db/catalog/index_catalog.cpp index d0da634ac21..8662eb0f906 100644 --- a/src/mongo/db/catalog/index_catalog.cpp +++ b/src/mongo/db/catalog/index_catalog.cpp @@ -414,7 +414,7 @@ void IndexCatalog::IndexBuildBlock::success() { entry->setIsReady(true); - collection->infoCache()->addedIndex(_txn, _indexName); + collection->infoCache()->addedIndex(_txn, desc); } namespace { @@ -792,7 +792,7 @@ public: void rollback() final { _entries->add(_entry); - _collection->infoCache()->addedIndex(_txn, _entry->descriptor()->indexName()); + _collection->infoCache()->addedIndex(_txn, _entry->descriptor()); } private: |