summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/resharding/resharding_data_copy_util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/s/resharding/resharding_data_copy_util.cpp')
-rw-r--r--src/mongo/db/s/resharding/resharding_data_copy_util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/s/resharding/resharding_data_copy_util.cpp b/src/mongo/db/s/resharding/resharding_data_copy_util.cpp
index 7cb9b4561d9..547be377b48 100644
--- a/src/mongo/db/s/resharding/resharding_data_copy_util.cpp
+++ b/src/mongo/db/s/resharding/resharding_data_copy_util.cpp
@@ -88,7 +88,7 @@ void ensureCollectionDropped(OperationContext* opCtx,
}
Value findHighestInsertedId(OperationContext* opCtx, const CollectionPtr& collection) {
- auto findCommand = std::make_unique<FindCommand>(collection->ns());
+ auto findCommand = std::make_unique<FindCommandRequest>(collection->ns());
findCommand->setLimit(1);
findCommand->setSort(BSON("_id" << -1));