From khera@kcilink.com  Wed Feb  9 16:49:59 2005
Return-Path: <khera@kcilink.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id F089916A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  9 Feb 2005 16:49:59 +0000 (GMT)
Received: from yertle.kcilink.com (yertle.kcilink.com [65.205.34.180])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 9706943D31
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  9 Feb 2005 16:49:59 +0000 (GMT)
	(envelope-from khera@kcilink.com)
Received: by yertle.kcilink.com (Postfix, from userid 100)
	id CC35FB833; Wed,  9 Feb 2005 11:49:58 -0500 (EST)
Message-Id: <20050209164958.CC35FB833@yertle.kcilink.com>
Date: Wed,  9 Feb 2005 11:49:58 -0500 (EST)
From: Vivek Khera <vivek@khera.org>
Reply-To: Vivek Khera <vivek@khera.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: fix bug in slon daemon
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         77312
>Category:       ports
>Synopsis:       fix bug in slon daemon
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 09 16:50:19 GMT 2005
>Closed-Date:    Wed Feb 09 23:32:22 GMT 2005
>Last-Modified:  Wed Feb 09 23:32:22 GMT 2005
>Originator:     Vivek Khera
>Release:        FreeBSD 5.3-STABLE amd64
>Organization:
>Environment:
System: FreeBSD yertle.int.kciLink.com 5.3-STABLE FreeBSD 5.3-STABLE #0: Fri Jan 7 16:42:37 EST 2005 khera@yertle.int.kciLink.com:/usr/obj/usr/src/sys/YERTLE amd64


	
>Description:
	

The "slon" daemon performs many actions in the replication.  One of those
contained a bug which caused large replication backlog to perform extremely
poorly.  The patch below pulls in the bug fix from the CVS version of slony.

>How-To-Repeat:
	
>Fix:

	


diff -Pru slony1/Makefile slony1.new/Makefile
--- slony1/Makefile	Mon Jan 31 12:58:39 2005
+++ slony1.new/Makefile	Wed Feb  9 11:45:47 2005
@@ -7,7 +7,7 @@
 
 PORTNAME=	slony1
 PORTVERSION=	1.0.5
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	databases
 MASTER_SITES=	http://developer.postgresql.org/~wieck/slony1/download/
 
diff -Pru slony1/files/patch-cleanupthread slony1.new/files/patch-cleanupthread
--- slony1/files/patch-cleanupthread	Wed Dec 31 19:00:00 1969
+++ slony1.new/files/patch-cleanupthread	Wed Feb  9 11:44:58 2005
@@ -0,0 +1,17 @@
+Index: src/slon/cleanup_thread.c
+===================================================================
+RCS file: /usr/local/cvsroot/slony1/slony1-engine/src/slon/cleanup_thread.c,v
+retrieving revision 1.13.2.4
+retrieving revision 1.13.2.5
+diff -u -r1.13.2.4 -r1.13.2.5
+--- cleanup_thread.c	30 Sep 2004 17:45:06 -0000	1.13.2.4
++++ cleanup_thread.c	12 Jan 2005 03:15:36 -0000	1.13.2.5
+@@ -145,7 +145,7 @@
+ 					"delete from %s.sl_log_1 "
+ 					"where log_origin = '%s' "
+ 					"and log_xid < '%s'; "
+-					"delete from %s.sl_log_1 "
++					"delete from %s.sl_log_2 "
+ 					"where log_origin = '%s' "
+ 					"and log_xid < '%s'; "
+ 					"delete from %s.sl_seqlog "
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Wed Feb 9 23:32:12 GMT 2005 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=77312 
>Unformatted:
