diff options
Diffstat (limited to 'src/mongo/db/repl/collection_bulk_loader_impl.cpp')
-rw-r--r-- | src/mongo/db/repl/collection_bulk_loader_impl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/repl/collection_bulk_loader_impl.cpp b/src/mongo/db/repl/collection_bulk_loader_impl.cpp index 3f8e78d46ca..c3354e3f225 100644 --- a/src/mongo/db/repl/collection_bulk_loader_impl.cpp +++ b/src/mongo/db/repl/collection_bulk_loader_impl.cpp @@ -93,7 +93,7 @@ Status CollectionBulkLoaderImpl::init(OperationContext* txn, invariant(txn->getClient() == &cc()); if (secondaryIndexSpecs.size()) { _secondaryIndexesBlock->ignoreUniqueConstraint(); - auto status = _secondaryIndexesBlock->init(secondaryIndexSpecs); + auto status = _secondaryIndexesBlock->init(secondaryIndexSpecs).getStatus(); if (!status.isOK()) { return status; } @@ -101,7 +101,7 @@ Status CollectionBulkLoaderImpl::init(OperationContext* txn, _secondaryIndexesBlock.reset(); } if (!_idIndexSpec.isEmpty()) { - auto status = _idIndexBlock->init(_idIndexSpec); + auto status = _idIndexBlock->init(_idIndexSpec).getStatus(); if (!status.isOK()) { return status; } |