diff options
Diffstat (limited to 'src/mongo/db/s/collection_sharding_state.h')
-rw-r--r-- | src/mongo/db/s/collection_sharding_state.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/s/collection_sharding_state.h b/src/mongo/db/s/collection_sharding_state.h index 9991a1811ab..d62b010bec6 100644 --- a/src/mongo/db/s/collection_sharding_state.h +++ b/src/mongo/db/s/collection_sharding_state.h @@ -70,6 +70,12 @@ public: static CollectionShardingState* get(OperationContext* opCtx, const NamespaceString& nss); /** + * It is the caller's responsibility to ensure that the collection locks for this namespace are + * held when this is called. The returned pointer should never be stored. + */ + static CollectionShardingState* get_UNSAFE(ServiceContext* svcCtx, const NamespaceString& nss); + + /** * Reports all collections which have filtering information associated. */ static void report(OperationContext* opCtx, BSONObjBuilder* builder); |