diff options
author | Tess Avitabile <tess.avitabile@mongodb.com> | 2016-10-24 12:04:42 -0400 |
---|---|---|
committer | Tess Avitabile <tess.avitabile@mongodb.com> | 2016-10-28 19:07:00 -0400 |
commit | e923952dd2c492ab19c34bfe094da6b855d0f99d (patch) | |
tree | ac1fdf64ee83055c63de3f62f3720a4dffcfea92 /src/mongo/db/catalog/index_catalog.h | |
parent | 8ac6f69b0879df0e69b8d9929badb472772a3bca (diff) | |
download | mongo-e923952dd2c492ab19c34bfe094da6b855d0f99d.tar.gz |
SERVER-26515 Create collection with v=2 index should include full index spec in oplog
Diffstat (limited to 'src/mongo/db/catalog/index_catalog.h')
-rw-r--r-- | src/mongo/db/catalog/index_catalog.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/catalog/index_catalog.h b/src/mongo/db/catalog/index_catalog.h index 446a949ff2f..bd0c919076a 100644 --- a/src/mongo/db/catalog/index_catalog.h +++ b/src/mongo/db/catalog/index_catalog.h @@ -211,9 +211,10 @@ public: /** * Call this only on an empty collection from inside a WriteUnitOfWork. Index creation on an - * empty collection can be rolled back as part of a larger WUOW. + * empty collection can be rolled back as part of a larger WUOW. Returns the full specification + * of the created index, as it is stored in this index catalog. */ - Status createIndexOnEmptyCollection(OperationContext* txn, BSONObj spec); + StatusWith<BSONObj> createIndexOnEmptyCollection(OperationContext* txn, BSONObj spec); StatusWith<BSONObj> prepareSpecForCreate(OperationContext* txn, const BSONObj& original) const; |