diff options
author | Antonin Kral <a.kral@bobek.cz> | 2011-12-15 09:35:47 +0100 |
---|---|---|
committer | Antonin Kral <a.kral@bobek.cz> | 2011-12-15 09:35:47 +0100 |
commit | f0d9a01bccdaeb466c12c92057914bbfef59526c (patch) | |
tree | 7679efa1f0daf7d1d906882a15dc77af6b7aef32 /s/chunk.h | |
parent | 5d342a758c6095b4d30aba0750b54f13b8916f51 (diff) | |
download | mongodb-f0d9a01bccdaeb466c12c92057914bbfef59526c.tar.gz |
Imported Upstream version 2.0.2
Diffstat (limited to 's/chunk.h')
-rw-r--r-- | s/chunk.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -292,15 +292,13 @@ namespace mongo { int numChunks() const { return _chunkMap.size(); } bool hasShardKey( const BSONObj& obj ) const; - void createFirstChunk( const Shard& shard ) const; // only call from DBConfig::shardCollection + void createFirstChunks( const Shard& shard ) const; // only call from DBConfig::shardCollection ChunkPtr findChunk( const BSONObj& obj ) const; ChunkPtr findChunkOnServer( const Shard& shard ) const; const ShardKeyPattern& getShardKey() const { return _key; } bool isUnique() const { return _unique; } - void maybeChunkCollection() const; - void getShardsForQuery( set<Shard>& shards , const BSONObj& query ) const; void getAllShards( set<Shard>& all ) const; void getShardsForRange(set<Shard>& shards, const BSONObj& min, const BSONObj& max) const; // [min, max) @@ -355,6 +353,8 @@ namespace mongo { const unsigned long long _sequenceNumber; + mutable TicketHolder _splitTickets; // number of concurrent splitVector we can do from a splitIfShould per collection + friend class Chunk; friend class ChunkRangeManager; // only needed for CRM::assertValid() static AtomicUInt NextSequenceNumber; |