diff options
-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() { |