diff options
author | Aaron <aaron@10gen.com> | 2012-01-26 23:56:49 -0800 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2012-02-06 22:12:27 -0800 |
commit | f86562d58757c6cc9f3378456e77f8fc9d3916c5 (patch) | |
tree | 28c7f79533fc0460cdb5fbf61237be46e8733aac /src/mongo/s/chunk.h | |
parent | 2f3d38360432bed89eccb8e0bbd535fd9bbf76d2 (diff) | |
download | mongo-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.h | 4 |
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 |