diff options
Diffstat (limited to 'src/mongo/db/catalog/database_impl.cpp')
-rw-r--r-- | src/mongo/db/catalog/database_impl.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/mongo/db/catalog/database_impl.cpp b/src/mongo/db/catalog/database_impl.cpp index cad05f316fb..5ac4bdf197b 100644 --- a/src/mongo/db/catalog/database_impl.cpp +++ b/src/mongo/db/catalog/database_impl.cpp @@ -557,18 +557,17 @@ Status DatabaseImpl::renameCollection(OperationContext* opCtx, return Status(ErrorCodes::NamespaceNotFound, "collection not found to rename"); } invariant(!collToRename->getIndexCatalog()->haveAnyIndexesInProgress(), - mongoutils::str::stream() - << "cannot perform operation: an index build is currently running for " - "collection " - << fromNSS); + str::stream() << "cannot perform operation: an index build is currently running for " + "collection " + << fromNSS); Collection* toColl = getCollection(opCtx, toNSS); if (toColl) { - invariant(!toColl->getIndexCatalog()->haveAnyIndexesInProgress(), - mongoutils::str::stream() - << "cannot perform operation: an index build is currently running for " - "collection " - << toNSS); + invariant( + !toColl->getIndexCatalog()->haveAnyIndexesInProgress(), + str::stream() << "cannot perform operation: an index build is currently running for " + "collection " + << toNSS); } log() << "renameCollection: renaming collection " << collToRename->uuid()->toString() |