Skip to content
Snippets Groups Projects
Commit c26ce923 authored by tpylak's avatar tpylak
Browse files

LMS-2033 bugfix from Sekhar: rollback in the right order

SVN: 19876
parent 5904dfd8
No related branches found
No related tags found
No related merge requests found
......@@ -226,8 +226,10 @@ public class DataSetStorageAlgorithmRunner<T extends DataSetInformation>
// Don't rollback when this exception happens
boolean stopped = ex instanceof InterruptedExceptionUnchecked;
for (DataSetStorageAlgorithm<T> storageAlgorithm : dataSetStorageAlgorithms)
// Rollback in the reverse order
for (int i = dataSetStorageAlgorithms.size() - 1; i >= 0; --i)
{
DataSetStorageAlgorithm<T> storageAlgorithm = dataSetStorageAlgorithms.get(i);
storageAlgorithm.rollbackStorageProcessor(ex);
if (stopped == false)
......
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