summaryrefslogtreecommitdiff
path: root/s/chunk.cpp
diff options
context:
space:
mode:
Diffstat (limited to 's/chunk.cpp')
-rw-r--r--s/chunk.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/s/chunk.cpp b/s/chunk.cpp
index 0834abd220b..9f1cec1359c 100644
--- a/s/chunk.cpp
+++ b/s/chunk.cpp
@@ -472,6 +472,12 @@ namespace mongo {
}
return added;
}
+
+ void ChunkManager::getAllServers( set<string>& allServers ){
+ for ( vector<Chunk*>::iterator i=_chunks.begin(); i != _chunks.end(); i++ ){
+ allServers.insert( (*i)->getShard() );
+ }
+ }
void ChunkManager::ensureIndex(){
set<string> seen;