Skip to content

Commit e6fb268

Browse files
author
Daan Hoogland
committed
several naming corrections
1 parent f187e2b commit e6fb268

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Diff for: engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -5385,7 +5385,7 @@ public Outcome<VirtualMachine> migrateVmThroughJobQueue(final String vmUuid, fin
53855385
Map<Volume, StoragePool> volumeStorageMap = dest.getStorageForDisks();
53865386
if (volumeStorageMap != null) {
53875387
for (Volume vol : volumeStorageMap.keySet()) {
5388-
checkConcurrentJobsPerDatastoreThreshhold(volumeStorageMap.get(vol));
5388+
checkConcurrentJobsPerDatastoreThreshold(volumeStorageMap.get(vol));
53895389
}
53905390
}
53915391

@@ -5550,7 +5550,7 @@ public Outcome<VirtualMachine> migrateVmForScaleThroughJobQueue(
55505550
return new VmJobVirtualMachineOutcome(workJob, vm.getId());
55515551
}
55525552

5553-
private void checkConcurrentJobsPerDatastoreThreshhold(final StoragePool destPool) {
5553+
private void checkConcurrentJobsPerDatastoreThreshold(final StoragePool destPool) {
55545554
final Long threshold = VolumeApiService.ConcurrentMigrationsThresholdPerDatastore.value();
55555555
if (threshold != null && threshold > 0) {
55565556
long count = _jobMgr.countPendingJobs("\"storageid\":\"" + destPool.getUuid() + "\"", MigrateVMCmd.class.getName(), MigrateVolumeCmd.class.getName(), MigrateVolumeCmdByAdmin.class.getName());
@@ -5571,7 +5571,7 @@ public Outcome<VirtualMachine> migrateVmStorageThroughJobQueue(
55715571
Set<Long> uniquePoolIds = new HashSet<>(poolIds);
55725572
for (Long poolId : uniquePoolIds) {
55735573
StoragePoolVO pool = _storagePoolDao.findById(poolId);
5574-
checkConcurrentJobsPerDatastoreThreshhold(pool);
5574+
checkConcurrentJobsPerDatastoreThreshold(pool);
55755575
}
55765576

55775577
final VMInstanceVO vm = _vmDao.findByUuid(vmUuid);
@@ -5625,7 +5625,7 @@ public Outcome<VirtualMachine> addVmToNetworkThroughJobQueue(
56255625
if (pendingWorkJobs.size() > 0) {
56265626
s_logger.warn(String.format("number of jobs to add net %s to vm %s are %d", network.getUuid(), vm.getInstanceName(), pendingWorkJobs.size()));
56275627
}
5628-
workJob = fetchOrCreateVmWorkJobToAddNetwokr(vm, network, requested, context, user, account, pendingWorkJobs);
5628+
workJob = fetchOrCreateVmWorkJobToAddNetwork(vm, network, requested, context, user, account, pendingWorkJobs);
56295629
} else {
56305630
if (s_logger.isTraceEnabled()) {
56315631
s_logger.trace(String.format("no jobs to add network %s for vm %s yet", network, vm));
@@ -5638,7 +5638,7 @@ public Outcome<VirtualMachine> addVmToNetworkThroughJobQueue(
56385638
return new VmJobVirtualMachineOutcome(workJob, vm.getId());
56395639
}
56405640

5641-
private VmWorkJobVO fetchOrCreateVmWorkJobToAddNetwokr(
5641+
private VmWorkJobVO fetchOrCreateVmWorkJobToAddNetwork(
56425642
VirtualMachine vm,
56435643
Network network,
56445644
NicProfile requested,

Diff for: engine/schema/src/main/resources/META-INF/db/schema-41520to41600.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -792,4 +792,4 @@ ALTER TABLE cloud_usage.usage_network DROP PRIMARY KEY, ADD PRIMARY KEY (`accoun
792792
ALTER TABLE `cloud`.`user_statistics` DROP INDEX `account_id`, ADD UNIQUE KEY `account_id` (`account_id`,`data_center_id`,`public_ip_address`,`device_id`,`device_type`, `network_id`);
793793
ALTER TABLE `cloud_usage`.`user_statistics` DROP INDEX `account_id`, ADD UNIQUE KEY `account_id` (`account_id`,`data_center_id`,`public_ip_address`,`device_id`,`device_type`, `network_id`);
794794

795-
ALTER TABLE `cloud`.`vm_work_job` ADD COLUMN `secondary_object` char(100) COMMENT 'any additional item that must be checked during queueing' AFTER `vm_instance_id`;
795+
ALTER TABLE `cloud`.`vm_work_job` ADD COLUMN `secondary_object` char(100) COMMENT 'any additional item that must be checked during queueing' AFTER `vm_instance_id`;

0 commit comments

Comments
 (0)