diff options
author | Greg Studer <greg@10gen.com> | 2013-07-01 17:08:15 -0400 |
---|---|---|
committer | Greg Studer <greg@10gen.com> | 2013-07-01 17:22:30 -0400 |
commit | 4bf8648b4196aff618c68ca2d814a1a13f48c3d2 (patch) | |
tree | 0b170b4513dd78fe7118e03c717a901f7ca41653 /src | |
parent | c83318821c4497026731511c391a6f6686d24be3 (diff) | |
download | mongo-4bf8648b4196aff618c68ca2d814a1a13f48c3d2.tar.gz |
SERVER-10039 buildbot test ChunkManagerLoadBasicTest need index to support sorting chunks in test
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/dbtests/sharding.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/dbtests/sharding.cpp b/src/mongo/dbtests/sharding.cpp index 34a333bc8c5..76dc56c30be 100644 --- a/src/mongo/dbtests/sharding.cpp +++ b/src/mongo/dbtests/sharding.cpp @@ -167,6 +167,11 @@ namespace ShardingTests { _shard = Shard( "shard0000", "$hostFooBar:27017" ); // Need to run this to ensure the shard is in the global lookup table _shard.setAddress( _shard.getAddress() ); + + // Create an index so that diffing works correctly, otherwise no cursors from S&O + client().ensureIndex( "config.chunks", // br + BSON( "ns" << 1 << // br + "lastmod" << 1 ) ); } virtual ~ChunkManagerTest() { |