mirror of https://github.com/apache/activemq.git
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@582574 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e2ef8b8165
commit
84a116d2c7
|
@ -258,12 +258,15 @@ public class DiskIndexLinkedList implements IndexLinkedList {
|
|||
*/
|
||||
public synchronized IndexItem getNextEntry(IndexItem current) {
|
||||
IndexItem result = null;
|
||||
if (current != null && current.getNextItem() >= 0) {
|
||||
if (current != null ) {
|
||||
current = (IndexItem) refreshEntry(current);
|
||||
if(current.getNextItem() >= 0){
|
||||
try {
|
||||
result = indexManager.getIndex(current.getNextItem());
|
||||
} catch (IOException e) {
|
||||
throw new RuntimeException("Failed to get next index from " + indexManager + " for " + current, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
// essential last get's updated consistently
|
||||
if (result != null && last != null && last.equals(result)) {
|
||||
|
|
Loading…
Reference in New Issue