Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 73823 invoked from network); 22 Jan 2008 06:56:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Jan 2008 06:56:56 -0000 Received: (qmail 63057 invoked by uid 500); 22 Jan 2008 06:56:45 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 63019 invoked by uid 500); 22 Jan 2008 06:56:45 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 63010 invoked by uid 99); 22 Jan 2008 06:56:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Jan 2008 22:56:45 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rajdavies@gmail.com designates 209.85.128.187 as permitted sender) Received: from [209.85.128.187] (HELO fk-out-0910.google.com) (209.85.128.187) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Jan 2008 06:56:19 +0000 Received: by fk-out-0910.google.com with SMTP id 22so2966248fkq.6 for ; Mon, 21 Jan 2008 22:56:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; bh=Jz6eFKgkWRw7bzu7xN/s4guvwiruFWbP0WHH/jNakUI=; b=cXpi8l+VrbTrum7Uu0CSW0y6Pxw3NkfzRe3mQPeM7HvJKNEpiGJ5DgY+7pQRUqz85+5pUKn9V/Dvrd330V96qEzLOc8Sq5vna7Q+CqIJ3JN1kuWKPF6EsOC3sn7kiwOmFMvGlZvaI3UVOqIaytQiCcZnIOzld5iww2GkXy1iIhk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; b=PB0ZveMzMBM4G0uHeqVGsvCxQB0qYOLivRbx0nGeGJs1eleZmbVaPl+dEvamYEhi9ZrXkVxdfiG+Auuld6al0u4RYzAPxb8PRMztlZk2uGXvIOuhEysKa99Hzx+UYuTVZh/nzd5PeGdcmigvMze8GNynRSE2dOUecH+vPJ6pMak= Received: by 10.82.187.2 with SMTP id k2mr14083675buf.19.1200984983643; Mon, 21 Jan 2008 22:56:23 -0800 (PST) Received: from ?192.168.1.74? ( [81.132.69.105]) by mx.google.com with ESMTPS id k5sm14620503nfd.23.2008.01.21.22.56.22 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 21 Jan 2008 22:56:22 -0800 (PST) Message-Id: <498B2217-1286-439C-9ED3-32E5D7B08B4F@gmail.com> From: Rob Davies To: dev@activemq.apache.org In-Reply-To: <1200965883.20763.56.camel@gmazza-desktop> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v915) Subject: Re: svn commit: r613830 - in /activemq/trunk/activemq-core/src/main/java/org/apache/activemq: broker/jmx/ broker/region/ broker/region/policy/ command/ Date: Tue, 22 Jan 2008 06:56:20 +0000 References: <20080121103127.0ECE11A9832@eris.apache.org> <1200965883.20763.56.camel@gmazza-desktop> X-Mailer: Apple Mail (2.915) X-Virus-Checked: Checked by ClamAV on apache.org On Jan 22, 2008, at 1:38 AM, Glen Mazza wrote: > Am Montag, den 21.01.2008, 10:31 +0000 schrieb rajdavies@apache.org: >> Author: rajdavies >> Date: Mon Jan 21 02:31:22 2008 >> New Revision: 613830 >> >> URL: http://svn.apache.org/viewvc?rev=613830&view=rev >> Log: >> Fix for https://issues.apache.org/activemq/browse/AMQ-1510 >> >> Modified: >> activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ >> broker/region/Queue.java >> URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/Queue.java?rev=613830&r1=613829&r2=613830&view=diff >> = >> = >> = >> = >> = >> = >> = >> = >> = >> ===================================================================== >> --- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ >> broker/region/Queue.java (original) >> +++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ >> broker/region/Queue.java Mon Jan 21 02:31:22 2008 >> @@ -150,6 +150,9 @@ > > Studying Queue.java, I think I see a minor problem with its > implementation--the business logic under > "if (r.lock(LockOwner.HIGH_PRIORITY_LOCK_OWNER)) {" on line 680 is > equivalent to that of "protected void > removeMessage(ConnectionContext c, > IndirectMessageReference r)" on line 922. I think the code in the > former can be simply replaced with a call to the latter. > > Glen > > Thanks Glen - will change in my next commit Rob Davies 'Go further faster with Apache Camel!' http://rajdavies.blogspot.com/