diff options
Diffstat (limited to 'src/mongo/db/commands/collection_to_capped.cpp')
-rw-r--r-- | src/mongo/db/commands/collection_to_capped.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mongo/db/commands/collection_to_capped.cpp b/src/mongo/db/commands/collection_to_capped.cpp index a7b3530d0e9..816882ad0fb 100644 --- a/src/mongo/db/commands/collection_to_capped.cpp +++ b/src/mongo/db/commands/collection_to_capped.cpp @@ -135,9 +135,7 @@ public: str::stream() << "database " << dbname << " not found"); } - Status status = - cloneCollectionAsCapped(opCtx, db, from.toString(), to.toString(), size, temp); - uassertStatusOK(status); + cloneCollectionAsCapped(opCtx, db, from.toString(), to.toString(), size, temp); return true; } } cmdCloneCollectionAsCapped; @@ -180,7 +178,7 @@ public: return false; } - uassertStatusOK(convertToCapped(opCtx, nss, size)); + convertToCapped(opCtx, nss, size); return true; } |