for getValue() ensure the StoreEntry is up to date

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@508719 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2007-02-17 07:10:03 +00:00
parent c8e6ff245b
commit 6ac27998aa
1 changed files with 2 additions and 2 deletions

View File

@ -836,8 +836,8 @@ public class ListContainerImpl extends BaseContainerImpl implements ListContaine
if(item!=null){ if(item!=null){
try{ try{
// ensure it's up to date // ensure it's up to date
// item=indexList.getEntry(item); StoreEntry itemToUse=indexList.getEntry(item);
StoreLocation data=item.getValueDataItem(); StoreLocation data=itemToUse.getValueDataItem();
result=dataManager.readItem(marshaller,data); result=dataManager.readItem(marshaller,data);
}catch(IOException e){ }catch(IOException e){
log.error("Failed to get value for "+item,e); log.error("Failed to get value for "+item,e);