summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/sorted_data_interface_test_fullvalidate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/storage/sorted_data_interface_test_fullvalidate.cpp')
-rw-r--r--src/mongo/db/storage/sorted_data_interface_test_fullvalidate.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/storage/sorted_data_interface_test_fullvalidate.cpp b/src/mongo/db/storage/sorted_data_interface_test_fullvalidate.cpp
index 98bb9936da9..ce0a31fcc53 100644
--- a/src/mongo/db/storage/sorted_data_interface_test_fullvalidate.cpp
+++ b/src/mongo/db/storage/sorted_data_interface_test_fullvalidate.cpp
@@ -44,13 +44,13 @@ TEST(SortedDataInterface, FullValidate) {
const std::unique_ptr<SortedDataInterface> sorted(harnessHelper->newSortedDataInterface(false));
{
- const std::unique_ptr<OperationContext> opCtx(harnessHelper->newOperationContext());
+ const ServiceContext::UniqueOperationContext opCtx(harnessHelper->newOperationContext());
ASSERT(sorted->isEmpty(opCtx.get()));
}
int nToInsert = 10;
for (int i = 0; i < nToInsert; i++) {
- const std::unique_ptr<OperationContext> opCtx(harnessHelper->newOperationContext());
+ const ServiceContext::UniqueOperationContext opCtx(harnessHelper->newOperationContext());
{
WriteUnitOfWork uow(opCtx.get());
BSONObj key = BSON("" << i);
@@ -61,13 +61,13 @@ TEST(SortedDataInterface, FullValidate) {
}
{
- const std::unique_ptr<OperationContext> opCtx(harnessHelper->newOperationContext());
+ const ServiceContext::UniqueOperationContext opCtx(harnessHelper->newOperationContext());
ASSERT_EQUALS(nToInsert, sorted->numEntries(opCtx.get()));
}
{
long long numKeysOut;
- const std::unique_ptr<OperationContext> opCtx(harnessHelper->newOperationContext());
+ const ServiceContext::UniqueOperationContext opCtx(harnessHelper->newOperationContext());
sorted->fullValidate(opCtx.get(), &numKeysOut, NULL);
// fullValidate() can set numKeysOut as the number of existing keys or -1.
ASSERT(numKeysOut == nToInsert || numKeysOut == -1);