diff options
author | Louis Williams <louis.williams@mongodb.com> | 2021-03-18 10:45:30 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-03-18 15:53:49 +0000 |
commit | 926ee400907f538c8eb240d97cb292797cd60571 (patch) | |
tree | f42275a316a114643801347b8666d6a764d9c624 /src/mongo/db/s | |
parent | ce5cb5c681dbf954d229367f543c0b89a4cbc6d7 (diff) | |
download | mongo-926ee400907f538c8eb240d97cb292797cd60571.tar.gz |
SERVER-52528 Test queries on sharded time-series collections
Diffstat (limited to 'src/mongo/db/s')
-rw-r--r-- | src/mongo/db/s/config/configsvr_shard_collection_command.cpp | 2 | ||||
-rw-r--r-- | src/mongo/db/s/create_collection_coordinator.cpp | 2 | ||||
-rw-r--r-- | src/mongo/db/s/shardsvr_create_collection_command.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/s/config/configsvr_shard_collection_command.cpp b/src/mongo/db/s/config/configsvr_shard_collection_command.cpp index 40344c84aa2..613aa25d6d0 100644 --- a/src/mongo/db/s/config/configsvr_shard_collection_command.cpp +++ b/src/mongo/db/s/config/configsvr_shard_collection_command.cpp @@ -84,7 +84,7 @@ void validateAndDeduceFullRequestOptions(OperationContext* opCtx, uassert(ErrorCodes::IllegalOperation, "can't shard system namespaces", !nss.isSystem() || nss == NamespaceString::kLogicalSessionsNamespace || - nss.isTemporaryReshardingCollection()); + nss.isTemporaryReshardingCollection() || nss.isTimeseriesBucketsCollection()); // Ensure numInitialChunks is within valid bounds. // Cannot have more than 8192 initial chunks per shard. Setting a maximum of 1,000,000 diff --git a/src/mongo/db/s/create_collection_coordinator.cpp b/src/mongo/db/s/create_collection_coordinator.cpp index f565463572d..705b6646b48 100644 --- a/src/mongo/db/s/create_collection_coordinator.cpp +++ b/src/mongo/db/s/create_collection_coordinator.cpp @@ -397,7 +397,7 @@ void CreateCollectionCoordinator::_checkCommandArguments(OperationContext* opCtx uassert(ErrorCodes::IllegalOperation, "can't shard system namespaces", !_nss.isSystem() || _nss == NamespaceString::kLogicalSessionsNamespace || - _nss.isTemporaryReshardingCollection()); + _nss.isTemporaryReshardingCollection() || _nss.isTimeseriesBucketsCollection()); if (_request.getNumInitialChunks()) { // Ensure numInitialChunks is within valid bounds. diff --git a/src/mongo/db/s/shardsvr_create_collection_command.cpp b/src/mongo/db/s/shardsvr_create_collection_command.cpp index ba3285d398f..e1179cd0421 100644 --- a/src/mongo/db/s/shardsvr_create_collection_command.cpp +++ b/src/mongo/db/s/shardsvr_create_collection_command.cpp @@ -119,7 +119,7 @@ CreateCollectionResponse createCollectionLegacy(OperationContext* opCtx, uassert(ErrorCodes::IllegalOperation, "can't shard system namespaces", !nss.isSystem() || nss == NamespaceString::kLogicalSessionsNamespace || - nss.isTemporaryReshardingCollection()); + nss.isTemporaryReshardingCollection() || nss.isTimeseriesBucketsCollection()); auto optNumInitialChunks = request.getNumInitialChunks(); if (optNumInitialChunks) { |