summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2021-06-28 06:44:36 +0000
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2021-06-28 06:44:36 +0000
commitb70aa804059d5d05a72271e1956c5af357c5f19b (patch)
tree1ca7650eae6f181350c87028e8df907d14165161
parent927d7919f2537c9270953f944a15d2a013332702 (diff)
downloadmongo-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.cpp2
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();
}();