Skip to content

Commit 48af60a

Browse files
authored
fix sql
1 parent edcbbde commit 48af60a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/schema/src/main/java/com/cloud/upgrade/DatabaseUpgradeChecker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ private void checkIfStandalone() throws CloudRuntimeException {
462462
boolean standalone = Transaction.execute(new TransactionCallback<>() {
463463
@Override
464464
public Boolean doInTransaction(TransactionStatus status) {
465-
String sql = "SELECT COUNT(*) FROM `cloud`.`management_server` WHERE `status` = 'UP'";
465+
String sql = "SELECT COUNT(*) FROM `cloud`.`mshosts` WHERE `state` = 'UP'";
466466
try (Connection conn = TransactionLegacy.getStandaloneConnection();
467467
PreparedStatement pstmt = conn.prepareStatement(sql);
468468
ResultSet rs = pstmt.executeQuery()) {

0 commit comments

Comments
 (0)