libdb/test/tcl/repmgr028script.tcl

19 lines
566 B
Tcl
Raw Normal View History

2011-09-13 17:44:24 +00:00
# See the file LICENSE for redistribution information.
#
# Copyright (c) 2009, 2011 Oracle and/or its affiliates. All rights reserved.
#
# Repmgr028 script - subordinate repmgr processes and dynamic role changes
source ./include.tcl
source $test_path/test.tcl
# Make sure a subordinate process is not allowed to set the ELECTIONS config.
#
set dbenv [berkdb_env_noerr -thread -home $testdir/SITE_A -txn -rep]
$dbenv repmgr -start elect
set ret [catch {$dbenv rep_config {mgrelections off}} result]
error_check_bad role_chg_attempt $ret 0
$dbenv close
puts "OK"