Fixed Coverity Issues Reported

This commit is contained in:
Santhosh Edukulla 2014-07-25 16:46:20 +05:30
parent 343943fd4e
commit 8aeefdc130
1 changed files with 3 additions and 2 deletions

View File

@ -22,6 +22,7 @@ import java.sql.Connection;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.log4j.Logger;
@ -80,8 +81,8 @@ public class Upgrade440to450 implements DbUpgrade {
uniqueKeys.put("storage_pool", keys);
s_logger.debug("Droping id_2 key from storage_pool table");
for (String tableName : uniqueKeys.keySet()) {
DbUpgradeUtils.dropKeysIfExist(conn, tableName, uniqueKeys.get(tableName), false);
for (Map.Entry<String, List<String>> entry: uniqueKeys.entrySet()) {
DbUpgradeUtils.dropKeysIfExist(conn,entry.getKey(), entry.getValue(), false);
}
}
}