diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2017-10-02 15:30:16 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2017-10-03 08:34:22 -0400 |
commit | 2217ee242cf401e3820bc3a046c6341c5537669f (patch) | |
tree | e182dfe8bffc527caf726c2cff0754b5b66779c1 /src/mongo/db/s/operation_sharding_state.h | |
parent | f50acb128dc0485b48d8045587579ba48ae888b4 (diff) | |
download | mongo-2217ee242cf401e3820bc3a046c6341c5537669f.tar.gz |
SERVER-31349 Rename 'disallowCollectionCreation' generic argument to 'allowImplicitCollectionCreation'
Diffstat (limited to 'src/mongo/db/s/operation_sharding_state.h')
-rw-r--r-- | src/mongo/db/s/operation_sharding_state.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/db/s/operation_sharding_state.h b/src/mongo/db/s/operation_sharding_state.h index 7c42e8840f3..4a55173c09c 100644 --- a/src/mongo/db/s/operation_sharding_state.h +++ b/src/mongo/db/s/operation_sharding_state.h @@ -64,12 +64,12 @@ public: * since the collection options will not be propagated. Such requests specify to disallow * collection creation, which is saved here. */ - void setDisallowCollectionCreationIfNeeded(const BSONElement& disallowCollectionCreationElt); + void setAllowImplicitCollectionCreation(const BSONElement& allowImplicitCollectionCreationElem); /** - * Returns false if the request specified not to allow collection creation. + * Specifies whether the request is allowed to create database/collection implicitly. */ - bool allowCollectionCreation(); + bool allowImplicitCollectionCreation() const; /** * Parses shard version from the command parameters 'cmdObj' and stores the results in this @@ -131,8 +131,8 @@ private: */ void _clear(); - // This value is set if a request specifies not to allow collection creation. - bool _disallowCollectionCreation = false; + // Specifies whether the request is allowed to create database/collection implicitly + bool _allowImplicitCollectionCreation{true}; bool _hasVersion = false; ChunkVersion _shardVersion{ChunkVersion::UNSHARDED()}; |