int lastSafeVolatileCommit = -1;
Set transactionIds = new HashSet();
for (int i = 0; i < actions.size(); i++) {
MultiIndex.Action a = (MultiIndex.Action) actions.get(i);
if (a.getType() == MultiIndex.Action.TYPE_COMMIT) {
transactionIds.clear();
} else if (a.getType() == MultiIndex.Action.TYPE_VOLATILE_COMMIT) {
transactionIds.retainAll(losers);
// check if transactionIds contains losers
if (transactionIds.size() > 0) {
// found dirty volatile commit