summaryrefslogtreecommitdiff
path: root/jstests/disk
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2013-08-02 09:31:49 -0400
committerEliot Horowitz <eliot@10gen.com>2013-08-02 09:33:16 -0400
commit52c2a3a99cd12a9031b231fa66ac1b1286a56b38 (patch)
tree07f9ae2634d4a0582a981ac57e5fe17bf04e7927 /jstests/disk
parente3b8349ec305b00bdb7107f2d887549640a15c90 (diff)
downloadmongo-52c2a3a99cd12a9031b231fa66ac1b1286a56b38.tar.gz
SERVER-6405: we shouldn't over pre-allocate from a createCollection
Diffstat (limited to 'jstests/disk')
-rw-r--r--jstests/disk/preallocate.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/disk/preallocate.js b/jstests/disk/preallocate.js
index a606585c048..b1d98878ef5 100644
--- a/jstests/disk/preallocate.js
+++ b/jstests/disk/preallocate.js
@@ -1,4 +1,4 @@
-// check that there is preallocation on explicit createCollection() and no unncessary preallocation after restart
+// check that there is preallocation, and there are 2 files
port = allocatePorts( 1 )[ 0 ];
@@ -20,11 +20,11 @@ assert.eq( 0, getTotalNonLocalSize() );
m.getDB( baseName ).createCollection( baseName + "1" );
// Windows does not currently use preallocation
-expectedMB = ( _isWindows() ? 70 : 100 );
+expectedMB = 64 + 16;
if ( m.getDB( baseName ).serverBits() < 64 )
expectedMB /= 4;
-assert.soon(function() { return getTotalNonLocalSize() > expectedMB * 1000000; },
+assert.soon(function() { return getTotalNonLocalSize() >= expectedMB * 1024 * 1024; },
"\n\n\nFAIL preallocate.js expected second file to bring total size over " +
expectedMB + "MB" );