diff options
| author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2015-02-17 17:25:57 +0000 |
|---|---|---|
| committer | <> | 2015-03-17 16:26:24 +0000 |
| commit | 780b92ada9afcf1d58085a83a0b9e6bc982203d1 (patch) | |
| tree | 598f8b9fa431b228d29897e798de4ac0c1d3d970 /test/tcl/test097.tcl | |
| parent | 7a2660ba9cc2dc03a69ddfcfd95369395cc87444 (diff) | |
| download | berkeleydb-master.tar.gz | |
Diffstat (limited to 'test/tcl/test097.tcl')
| -rw-r--r-- | test/tcl/test097.tcl | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/test/tcl/test097.tcl b/test/tcl/test097.tcl index ed75cc62..d8caf2e2 100644 --- a/test/tcl/test097.tcl +++ b/test/tcl/test097.tcl @@ -1,6 +1,6 @@ # See the file LICENSE for redistribution information. # -# Copyright (c) 1996, 2012 Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 1996, 2015 Oracle and/or its affiliates. All rights reserved. # # $Id$ # @@ -29,9 +29,19 @@ proc test097 { method {ndbs 500} {nentries 400} args } { return } env_cleanup $testdir + + # When native pagesize is small(like 512B on QNX) and + # we are running with heap, we need extra mutexes + # for supporting recno file. + set mutexargs "" + set native_pagesize [get_native_pagesize] + if {$native_pagesize < 2048 && [is_heap $method]} { + set mutexargs "-mutex_set_max 40000" + } + set env [eval {berkdb_env -create -log_regionmax 256000 \ -pagesize 512 -cachesize { 0 1048576 1 } -txn} \ - -home $testdir $encargs] + -home $testdir $encargs $mutexargs] error_check_good dbenv [is_valid_env $env] TRUE if { [is_partitioned $args] == 1 } { |
