Jan Wieck wieck at lists.slony.info
Tue Dec 8 16:52:36 PST 2009
Update of /home/cvsd/slony1/slony1-engine/src/ducttape
In directory main.slony.info:/tmp/cvs-serv29659/ducttape

Modified Files:
      Tag: REL_1_2_STABLE
	test_1_pgbench.in test_1_update_functions 
Log Message:
Change ducttape/test_1_pgbench to bump the sl_action_seq close to 2G
so that it will cross the 2G boundary during the test run.


Jan


Index: test_1_update_functions
===================================================================
RCS file: /home/cvsd/slony1/slony1-engine/src/ducttape/test_1_update_functions,v
retrieving revision 1.3
retrieving revision 1.3.4.1
diff -C2 -d -r1.3 -r1.3.4.1
*** test_1_update_functions	4 May 2005 20:43:16 -0000	1.3
--- test_1_update_functions	9 Dec 2009 00:52:34 -0000	1.3.4.1
***************
*** 18,26 ****
  slonik <<_EOF_
  	cluster name = T1;
! 	node 1 admin conninfo = 'dbname=$DB1';
! 	node 2 admin conninfo = 'dbname=$DB2';
  
! 	update functions (id = 1);
! 	update functions (id = 2);
  _EOF_
  
--- 18,26 ----
  slonik <<_EOF_
  	cluster name = T1;
! 	node 11 admin conninfo = 'dbname=$DB1';
! 	node 22 admin conninfo = 'dbname=$DB2';
  
! 	update functions (id = 11);
! 	update functions (id = 22);
  _EOF_
  

Index: test_1_pgbench.in
===================================================================
RCS file: /home/cvsd/slony1/slony1-engine/src/ducttape/test_1_pgbench.in,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -C2 -d -r1.1 -r1.1.2.1
*** test_1_pgbench.in	4 Jul 2005 23:45:21 -0000	1.1
--- test_1_pgbench.in	9 Dec 2009 00:52:34 -0000	1.1.2.1
***************
*** 128,131 ****
--- 128,136 ----
  fi
  
+ # Bump the sl_action_seq close to 2G
+ psql $DB1 <<_EOF_
+ 	select setval('"_T1".sl_action_seq', 2147483647 - 10000);
+ _EOF_
+ 
  echo "**** starting the Slony-I node daemon for $DB1"
  $TERMPROG -title "Slon node 11" -e sh -c "slon -d$DEBUG_LEVEL -s500 -g10 T1 dbname=$DB1; echo -n 'Enter>'; read line" &



More information about the Slony1-commit mailing list