diff options
Diffstat (limited to 'jstests/sharding/auto2.js')
-rw-r--r-- | jstests/sharding/auto2.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/sharding/auto2.js b/jstests/sharding/auto2.js index afca165f2a3..81f0c1f17ea 100644 --- a/jstests/sharding/auto2.js +++ b/jstests/sharding/auto2.js @@ -38,7 +38,8 @@ new Mongo(s.s.host).adminCommand("connpoolsync"); print("done inserting data" ); -print("datasize: " + tojson( s.getServer("test" ).getDB("admin" ).runCommand( { datasize : "test.foo" } ) ) ); +print("datasize: " + tojson( s.getPrimaryShard("test" ).getDB("admin" ) + .runCommand( { datasize : "test.foo" } ) ) ); s.printChunks(); function doCountsGlobal(){ |