diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2007-07-16 16:48:14 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2007-07-16 16:48:14 +0300 |
commit | 2cfd3012bfcb5c5c61bbaf662ef084e0ab789d79 (patch) | |
tree | e12ee52087506ac8c7a5eee83b17497d98df2d40 /db/test/rep011.tcl | |
parent | b754fe19fd387ca5fe8e7c00ddaa25c898fa192f (diff) | |
download | librpm-tizen-2cfd3012bfcb5c5c61bbaf662ef084e0ab789d79.tar.gz librpm-tizen-2cfd3012bfcb5c5c61bbaf662ef084e0ab789d79.tar.bz2 librpm-tizen-2cfd3012bfcb5c5c61bbaf662ef084e0ab789d79.zip |
Update internal BDB to version 4.5.20
Diffstat (limited to 'db/test/rep011.tcl')
-rw-r--r-- | db/test/rep011.tcl | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/db/test/rep011.tcl b/db/test/rep011.tcl index 6fe119233..ff83ebac9 100644 --- a/db/test/rep011.tcl +++ b/db/test/rep011.tcl @@ -1,9 +1,9 @@ # See the file LICENSE for redistribution information. # -# Copyright (c) 2003-2004 -# Sleepycat Software. All rights reserved. +# Copyright (c) 2003-2006 +# Oracle Corporation. All rights reserved. # -# $Id: rep011.tcl,v 1.10 2004/09/22 18:01:06 bostic Exp $ +# $Id: rep011.tcl,v 12.9 2006/08/24 14:46:37 bostic Exp $ # # TEST rep011 # TEST Replication: test open handle across an upgrade. @@ -18,11 +18,22 @@ # TEST propagated back to the new client. proc rep011 { method { tnum "011" } args } { + global has_crypto global passwd + source ./include.tcl + if { $is_windows9x_test == 1 } { + puts "Skipping replication test on Win 9x platform." + return + } + + # Run for all access methods. + if { $checking_valid_methods } { + return "ALL" + } + set logsets [create_logsets 2] - set recopts { "" "-recover" } - foreach r $recopts { + foreach r $test_recopts { foreach l $logsets { set logindex [lsearch -exact $l "in-memory"] if { $r == "-recover" && $logindex != -1 } { @@ -37,6 +48,9 @@ proc rep011 { method { tnum "011" } args } { puts "Rep$tnum: Client logs are [lindex $l 1]" rep011_sub $method $tnum $envargs $l $r $args + if { $has_crypto == 0 } { + continue + } append envargs " -encryptaes $passwd " append args " -encrypt " @@ -76,7 +90,7 @@ proc rep011_sub { method tnum envargs logset recargs largs } { # Open a master. repladd 1 - set env_cmd(M) "berkdb_env -create -lock_max 2500 \ + set env_cmd(M) "berkdb_env -create \ -log_max 1000000 $m_logargs $envargs -home $masterdir \ $m_txnargs -rep_master -rep_transport \ \[list 1 replsend\]" @@ -85,7 +99,7 @@ proc rep011_sub { method tnum envargs logset recargs largs } { # Open a client repladd 2 - set env_cmd(C) "berkdb_env -create -lock_max 2500 \ + set env_cmd(C) "berkdb_env -create \ $c_logargs $envargs -home $clientdir \ $c_txnargs -rep_client -rep_transport \ \[list 2 replsend\]" @@ -128,7 +142,7 @@ proc rep011_sub { method tnum envargs logset recargs largs } { puts "\tRep$tnum.d: Reopen old master as client and catch up." set newclientenv [eval {berkdb_env -create -recover} $envargs \ - -txn nosync -lock_max 2500 \ + -txn nosync \ {-home $masterdir -rep_client -rep_transport [list 1 replsend]}] error_check_good newclient_env [is_valid_env $newclientenv] TRUE set envlist "{$newclientenv 1} {$newmasterenv 2}" |