summaryrefslogtreecommitdiff
path: root/src/mongo/s/chunk.h
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2012-01-26 23:56:49 -0800
committerAaron <aaron@10gen.com>2012-02-06 22:12:27 -0800
commitf86562d58757c6cc9f3378456e77f8fc9d3916c5 (patch)
tree28c7f79533fc0460cdb5fbf61237be46e8733aac /src/mongo/s/chunk.h
parent2f3d38360432bed89eccb8e0bbd535fd9bbf76d2 (diff)
downloadmongo-f86562d58757c6cc9f3378456e77f8fc9d3916c5.tar.gz
SERVER-4554 for shard selection, treat empty ranges separately from universal ranges, avoid generating index bounds for unsatisfiable queries, and temporarily ensure at least one shard is returned
Diffstat (limited to 'src/mongo/s/chunk.h')
-rw-r--r--src/mongo/s/chunk.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/s/chunk.h b/src/mongo/s/chunk.h
index 7bba6ad6cfc..540e8eb9dcf 100644
--- a/src/mongo/s/chunk.h
+++ b/src/mongo/s/chunk.h
@@ -384,6 +384,10 @@ namespace mongo {
friend class Chunk;
friend class ChunkRangeManager; // only needed for CRM::assertValid()
static AtomicUInt NextSequenceNumber;
+
+ /** Just for testing */
+ friend class TestableChunkManager;
+ ChunkManager();
};
// like BSONObjCmp. for use as an STL comparison functor