Skip to content
Snippets Groups Projects
Commit dc397ca4 authored by Eric Cano's avatar Eric Cano
Browse files

Fixed missing object address reset before retry.

While fixing #360
parent 1115df4a
No related branches found
No related tags found
No related merge requests found
......@@ -158,6 +158,8 @@ void ContainerTraits<ArchiveQueue>::getLockedAndFetchedNoCreate(Container& cont,
}
//emptyQueueCleanupTime += localEmptyCleanupQueueTime = t.secs(utils::Timer::resetCounter);
attemptCount++;
// Reset the address so we can reuse the in-memory object with potentially ane address.
cont.resetAddress();
goto retry;
}
}
......
......@@ -289,6 +289,8 @@ getLockedAndFetchedNoCreate(Container& cont, ScopedExclusiveLock& contLock, cons
}
//emptyQueueCleanupTime += localEmptyCleanupQueueTime = t.secs(utils::Timer::resetCounter);
attemptCount++;
// Reset the address so we can reuse the in-memory object with potentially ane address.
cont.resetAddress();
goto retry;
}
}
......
......@@ -283,6 +283,8 @@ getLockedAndFetchedNoCreate(Container& cont, ScopedExclusiveLock& contLock, cons
}
//emptyQueueCleanupTime += localEmptyCleanupQueueTime = t.secs(utils::Timer::resetCounter);
attemptCount++;
// Reset the address so we can reuse the in-memory object with potentially ane address.
cont.resetAddress();
goto retry;
}
}
......
......@@ -258,6 +258,8 @@ retry:
lc.log(log::DEBUG, "In ContainerTraits<RetrieveQueue,C>::getLockedAndFetchedNoCreate(): could not dereference missing queue from root entry: already done.");
}
attemptCount++;
// Reset the address so we can reuse the in-memory object with potentially ane address.
cont.resetAddress();
goto retry;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment