From f0d9a01bccdaeb466c12c92057914bbfef59526c Mon Sep 17 00:00:00 2001 From: Antonin Kral Date: Thu, 15 Dec 2011 09:35:47 +0100 Subject: Imported Upstream version 2.0.2 --- s/chunk.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 's/chunk.h') diff --git a/s/chunk.h b/s/chunk.h index 4c36dd1..3e981e9 100644 --- a/s/chunk.h +++ b/s/chunk.h @@ -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& shards , const BSONObj& query ) const; void getAllShards( set& all ) const; void getShardsForRange(set& 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; -- cgit v1.2.3