summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/operation_sharding_state.h
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2017-10-02 15:30:16 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2017-10-03 08:34:22 -0400
commit2217ee242cf401e3820bc3a046c6341c5537669f (patch)
treee182dfe8bffc527caf726c2cff0754b5b66779c1 /src/mongo/db/s/operation_sharding_state.h
parentf50acb128dc0485b48d8045587579ba48ae888b4 (diff)
downloadmongo-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.h10
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()};