summaryrefslogtreecommitdiff
path: root/s/chunk.h
diff options
context:
space:
mode:
Diffstat (limited to 's/chunk.h')
-rw-r--r--s/chunk.h6
1 files changed, 3 insertions, 3 deletions
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<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;