~ubuntu-branches/ubuntu/maverick/slony1/maverick

« back to all changes in this revision

Viewing changes to src/ducttape/test_1_handover_to_2

  • Committer: Bazaar Package Importer
  • Author(s): Peter Eisentraut
  • Date: 2006-11-17 17:19:48 UTC
  • mfrom: (1.1.2 upstream) (2.1.1 etch)
  • Revision ID: james.westby@ubuntu.com-20061117171948-jd89seng1dcff6rc
Tags: 1.2.1-1
* New upstream release
  - Updated no-client-log.patch
  - Obsoleted patches: hardcoded-paths.patch
* Updated watch file
* Reenabled Perl tools
* Added missing final newline to slon.conf-sample
* Updated test script

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
# **********
4
4
# test_1_handover_to_2
5
5
#
6
 
#       Script to change the origin of set 1 from node 1 to node 2.
7
 
#       This still requires that node 1 is alive. This is called
 
6
#       Script to change the origin of set 1 from node 11 to node 22.
 
7
#       This still requires that node 11 is alive. This is called
8
8
#       handover or move, not failover.
9
9
# **********
10
10
 
20
20
echo "**** Move set 1 to node 2"
21
21
slonik <<_EOF_
22
22
        cluster name = T1;
23
 
        node 1 admin conninfo = 'dbname=$DB1';
24
 
        node 2 admin conninfo = 'dbname=$DB2';
 
23
        node 11 admin conninfo = 'dbname=$DB1';
 
24
        node 22 admin conninfo = 'dbname=$DB2';
25
25
 
26
 
        lock set (id = 1, origin = 1);
27
 
        move set (id = 1, old origin = 1, new origin = 2);
 
26
        lock set (id = 1, origin = 11);
 
27
        move set (id = 1, old origin = 11, new origin = 22);
28
28
_EOF_
29
29