Skip to content

Commit 4ae1c3f

Browse files
author
Pearl Dsilva
committed
minor improvement
1 parent 4584cb8 commit 4ae1c3f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

server/src/main/java/com/cloud/storage/clvm/ClvmPoolManager.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,7 @@ public Long queryCurrentLockHolder(Long volumeId, String volumeUuid, String volu
181181
Long clusterId = pool.getClusterId();
182182
if (clusterId != null) {
183183
hosts = _hostDao.findByClusterId(clusterId, Host.Type.Routing);
184-
}
185-
if ((hosts == null || hosts.isEmpty()) && pool.getDataCenterId() > 0) {
184+
} else if (pool.getDataCenterId() > 0) {
186185
hosts = _hostDao.findByDataCenterId(pool.getDataCenterId());
187186
}
188187
if (hosts == null || hosts.isEmpty()) {

0 commit comments

Comments
 (0)