summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/collection_sharding_state.h
diff options
context:
space:
mode:
authorTommaso Tocci <tommaso.tocci@mongodb.com>2020-02-21 17:31:11 +0100
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-02-21 21:59:42 +0000
commitd55ce1b7ae2127d257138066490e60cf9035ee24 (patch)
tree2350e9e40e4f1352979967c7b899f73a315c3ecb /src/mongo/db/s/collection_sharding_state.h
parent693d22ed23eca46967a92ce55fc6aa2c6121977b (diff)
downloadmongo-d55ce1b7ae2127d257138066490e60cf9035ee24.tar.gz
SERVER-46295 Remove unneeded isColletion parameter to CollectionShardingRuntime methods
Diffstat (limited to 'src/mongo/db/s/collection_sharding_state.h')
-rw-r--r--src/mongo/db/s/collection_sharding_state.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mongo/db/s/collection_sharding_state.h b/src/mongo/db/s/collection_sharding_state.h
index cdbbdf00d4e..cef405ee943 100644
--- a/src/mongo/db/s/collection_sharding_state.h
+++ b/src/mongo/db/s/collection_sharding_state.h
@@ -104,8 +104,7 @@ public:
* The returned object is safe to access even after the collection lock has been dropped.
*/
- virtual ScopedCollectionFilter getOwnershipFilter(OperationContext* opCtx,
- bool isCollection) = 0;
+ virtual ScopedCollectionFilter getOwnershipFilter(OperationContext* opCtx) = 0;
/**
* See the comments for 'getOwnershipFilter' above for more information on this method.
@@ -128,13 +127,12 @@ public:
* version of the collection and if not, throws StaleConfigException populated with the received
* and wanted versions.
*/
- virtual void checkShardVersionOrThrow(OperationContext* opCtx, bool isCollection) = 0;
+ virtual void checkShardVersionOrThrow(OperationContext* opCtx) = 0;
/**
* Similar to checkShardVersionOrThrow but returns a status instead of throwing.
*/
- virtual Status checkShardVersionNoThrow(OperationContext* opCtx,
- bool isCollection) noexcept = 0;
+ virtual Status checkShardVersionNoThrow(OperationContext* opCtx) noexcept = 0;
/**
* Methods to control the collection's critical section. Methods listed below must be called