Steve Singer,,, ssinger at lists.slony.info
Wed Jul 7 07:32:52 PDT 2010
Update of /home/cvsd/slony1/slony1-engine/src/slony_logshipper
In directory main.slony.info:/tmp/cvs-serv23141/src/slony_logshipper

Modified Files:
      Tag: REL_2_0_STABLE
	slony_logshipper.c 
Log Message:
Log shipping fixes
-slony1_dump.sh now generates a .sql file that restores in replica mode
so triggers don't fire.  It will also truncate tables before restoring
to them
-Check for the proper return code to indicate no files are queued for
processing. This will allow log_shipper to sleep waiting for more work
when no files are ready for processing.



Index: slony_logshipper.c
===================================================================
RCS file: /home/cvsd/slony1/slony1-engine/src/slony_logshipper/slony_logshipper.c,v
retrieving revision 1.3.2.1
retrieving revision 1.3.2.2
diff -C 2 -d -r1.3.2.1 -r1.3.2.2
*** slony_logshipper.c	17 Aug 2009 17:09:59 -0000	1.3.2.1
--- slony_logshipper.c	7 Jul 2010 14:32:50 -0000	1.3.2.2
***************
*** 371,375 ****
  			break;
  
! 		if (rc == -2)
  		{
  			archscan_sort = NULL;
--- 371,375 ----
  			break;
  
! 		if (rc == -3)
  		{
  			archscan_sort = NULL;
***************
*** 386,389 ****
--- 386,390 ----
  		if (rc < 0)
  		{
+ 			errlog(LOG_ERROR,"ipc_recv_path returned an error:%d\n",rc);
  			return -1;
  		}



More information about the Slony1-commit mailing list