Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 3204 invoked from network); 26 Nov 2007 15:58:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Nov 2007 15:58:01 -0000 Received: (qmail 40466 invoked by uid 500); 26 Nov 2007 15:57:48 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 40415 invoked by uid 500); 26 Nov 2007 15:57:48 -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 40406 invoked by uid 99); 26 Nov 2007 15:57:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Nov 2007 07:57:48 -0800 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rajdavies@gmail.com designates 64.233.182.191 as permitted sender) Received: from [64.233.182.191] (HELO nf-out-0910.google.com) (64.233.182.191) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Nov 2007 15:57:26 +0000 Received: by nf-out-0910.google.com with SMTP id b21so668124nfd for ; Mon, 26 Nov 2007 07:57:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:mime-version:in-reply-to:references:content-type:message-id:content-transfer-encoding:from:subject:date:to:x-mailer; bh=WMyJCIHVwp1QDv7VR3wbg4w1tKsqMoRjPruRUdx7Ylc=; b=To3EZBvfti4nNL690D7Fzq0TNskNookACi5AMCUt1fEmVJO3Zeiz//YIFgOt9yMYfjY//c1OcNcDdvqjd9pgEeuRV3cu4WW4C/8T5tJullWwxoItix/9tlgbw841NCjOTMyvcm7O1Zg38qzQxJHaBPDhiCOkjhd2XhNn7B6O/v8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:mime-version:in-reply-to:references:content-type:message-id:content-transfer-encoding:from:subject:date:to:x-mailer; b=XXhB3rWsw3rwemwMFw9kO2Rn4WtFgoS/AOeKEFAhlmxjRDS6V9eenTUag52tfJrW+vTimjPqhNnxvvqihP31yY4wW09FuC8Z6h9Z1lvXZHEIXbusSS/HS7KPixWXuSxckpSQX/3TiNM5jCKpiNH6VVNSGfJjkLene7CJZlCJVVU= Received: by 10.78.203.15 with SMTP id a15mr3043817hug.1196092646286; Mon, 26 Nov 2007 07:57:26 -0800 (PST) Received: from ?192.168.1.73? ( [86.157.175.233]) by mx.google.com with ESMTPS id g17sm2021147nfd.2007.11.26.07.57.23 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 26 Nov 2007 07:57:24 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <13944775.post@talk.nabble.com> References: <13944775.post@talk.nabble.com> Content-Type: text/plain; charset=UTF-8; delsp=yes; format=flowed Message-Id: <9097431B-3A7B-44D5-B18A-046BA13A7D0B@gmail.com> Content-Transfer-Encoding: quoted-printable From: Rob Davies Subject: Re: Bug in DiskIndexLinkedList.java Date: Mon, 26 Nov 2007 15:56:58 +0000 To: dev@activemq.apache.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org I raised an issue to track this: https://issues.apache.org/activemq/=20 browse/AMQ-1502 On Nov 26, 2007, at 7:13 AM, Chris Zeng wrote: > > I use MapContainerImpl with IndexTypes.DISK_INDEX index type=E3=80=82=20= > Suppose I add > for elements A, B, C, D by order, then I delete D. And then I =20 > delete B.After > these operations, the indice is wrong.Because after I insert for =20 > elements, > Indice is A->B->C->D. I delete D=EF=BC=8C then A->B-C=E3=80=82But = notice in =20 > memory, last > variable in DiskIndexLinkedList is not as same as file=E3=80=82The = last's =20 > next > points D. Then I delete B=EF=BC=8Ccodes in MapContainerImpl set A'next = to =20 > C and > C'prev to A and writes them back.Then error occurs. This is because =20= > when > DiskIndexLinkedList find result is euqal to root or last, it's simplly > return root or last,actually, if is root, DiskIndexLinkedList =20 > should update > the content of root object(Can not simplly root =3D result). If it is =20= > last, > DiskIndexLinkedList can use last =3D result to update the content of =20= > last. > --=20 > View this message in context: http://www.nabble.com/Bug-in-=20 > DiskIndexLinkedList.java-tf4873351s2354.html#a13944775 > Sent from the ActiveMQ - Dev mailing list archive at Nabble.com. >