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/collection.cpp | |
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/collection.cpp')
-rw-r--r-- | src/mongo/db/catalog/collection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/catalog/collection.cpp b/src/mongo/db/catalog/collection.cpp index 0df69a9d2e6..cccaa6b257b 100644 --- a/src/mongo/db/catalog/collection.cpp +++ b/src/mongo/db/catalog/collection.cpp @@ -918,7 +918,7 @@ Status Collection::truncate(OperationContext* txn) { // 4) re-create indexes for (size_t i = 0; i < indexSpecs.size(); i++) { - status = _indexCatalog.createIndexOnEmptyCollection(txn, indexSpecs[i]); + status = _indexCatalog.createIndexOnEmptyCollection(txn, indexSpecs[i]).getStatus(); if (!status.isOK()) return status; } |