summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/collection_to_capped.cpp
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2018-10-26 17:21:58 -0400
committerDavid Storch <david.storch@10gen.com>2018-10-31 17:26:35 -0400
commitd6c618fc94ebdfdba5d270e396a084290a54d360 (patch)
tree81f42ec3ebe8522ebbca4e95a6c1615fccfbdb26 /src/mongo/db/commands/collection_to_capped.cpp
parent5180b48eedec5e57e7f12f734d173184bbff2af7 (diff)
downloadmongo-d6c618fc94ebdfdba5d270e396a084290a54d360.tar.gz
SERVER-37444 Added RequiresCollectionStage and use for COLLSCAN.
This is a pure refactor with no user-facing changes. It is the first step in making PlanExecutors check their own validity during yield recovery, rather than requiring the invalidating actor to issue a kill notification.
Diffstat (limited to 'src/mongo/db/commands/collection_to_capped.cpp')
-rw-r--r--src/mongo/db/commands/collection_to_capped.cpp6
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;
}