summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/collection_sharding_runtime.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/s/collection_sharding_runtime.cpp')
-rw-r--r--src/mongo/db/s/collection_sharding_runtime.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/db/s/collection_sharding_runtime.cpp b/src/mongo/db/s/collection_sharding_runtime.cpp
index be3c4ff4b4a..f007c17c777 100644
--- a/src/mongo/db/s/collection_sharding_runtime.cpp
+++ b/src/mongo/db/s/collection_sharding_runtime.cpp
@@ -147,6 +147,14 @@ ScopedCollectionFilter CollectionShardingRuntime::getOwnershipFilter(
return {std::move(metadata)};
}
+ScopedCollectionFilter CollectionShardingRuntime::getOwnershipFilter(
+ OperationContext* opCtx,
+ OrphanCleanupPolicy orphanCleanupPolicy,
+ const ShardVersion& receivedShardVersion) const {
+ return _getMetadataWithVersionCheckAt(
+ opCtx, repl::ReadConcernArgs::get(opCtx).getArgsAtClusterTime(), receivedShardVersion);
+}
+
ScopedCollectionDescription CollectionShardingRuntime::getCollectionDescription(
OperationContext* opCtx) const {
const bool operationIsVersioned = OperationShardingState::isComingFromRouter(opCtx);