diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2021-06-28 06:44:36 +0000 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2021-06-28 06:44:36 +0000 |
commit | b70aa804059d5d05a72271e1956c5af357c5f19b (patch) | |
tree | 1ca7650eae6f181350c87028e8df907d14165161 | |
parent | 927d7919f2537c9270953f944a15d2a013332702 (diff) | |
download | mongo-b70aa804059d5d05a72271e1956c5af357c5f19b.tar.gz |
SERVER-58109 Make shardChunksInRangeQuery satisfiable from the index only
-rw-r--r-- | src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.cpp b/src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.cpp index e557719be69..11d9b3f395d 100644 --- a/src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.cpp +++ b/src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.cpp @@ -927,7 +927,7 @@ StatusWith<BSONObj> ShardingCatalogManager::commitChunksMerge( } queryBuilder << ChunkType::shard(shardId.toString()); queryBuilder << ChunkType::min(BSON("$gte" << chunkRange.getMin())); - queryBuilder << ChunkType::max(BSON("$lte" << chunkRange.getMax())); + queryBuilder << ChunkType::min(BSON("$lt" << chunkRange.getMax())); return queryBuilder.obj(); }(); |