Skip to content

Commit e1973a2

Browse files
committed
Fix CID-1116645
1 parent 086b8c0 commit e1973a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,8 @@ private void updateClusterDetails(Connection conn, Map<Long, List<Pair<String, S
265265
while (clusterIt.hasNext()) {
266266
clusterId = clusterIt.next();
267267
keyValues = detailsMap.get(clusterId);
268+
clusterDetailsInsert = conn.prepareStatement("INSERT INTO `cloud`.`cluster_details` (cluster_id, name, value) VALUES (?, ?, ?)");
268269
for (Pair<String, String> keyValuePair : keyValues) {
269-
clusterDetailsInsert = conn.prepareStatement("INSERT INTO `cloud`.`cluster_details` (cluster_id, name, value) VALUES (?, ?, ?)");
270270
key = keyValuePair.first();
271271
val = keyValuePair.second();
272272
clusterDetailsInsert.setLong(1, clusterId);

0 commit comments

Comments
 (0)