bug 8301: fix typo

status 8301: resolved fixed
This commit is contained in:
Edison Su 2011-02-01 12:11:33 -05:00
parent ade0097a0a
commit d6a7bb1fbe
1 changed files with 1 additions and 1 deletions

View File

@ -1620,7 +1620,7 @@ public class StorageManagerImpl implements StorageManager, StorageService, Manag
List<Long> hostIds = _storagePoolHostDao.customSearch(sc, null);
Collections.shuffle(hostIds);
if (hostIdsToTryFirst != null) {
for (int i = hostIdsToTryFirst.length; i >= 0; i--) {
for (int i = hostIdsToTryFirst.length - 1; i >= 0; i--) {
if (hostIds.remove(hostIdsToTryFirst[i])) {
hostIds.add(0, hostIdsToTryFirst[i]);
}