Skip to content

Commit ea3a77e

Browse files
author
Kishan Kavala
committed
CLOUDSTACK-3484: Removed method synchornization in libvirt and virtual router resources
1 parent af696e6 commit ea3a77e

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

core/src/com/cloud/agent/resource/virtualnetwork/VirtualRoutingResource.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ private String setLoadBalancerConfig(final String cfgFile,
580580
return command.execute();
581581
}
582582

583-
protected synchronized Answer execute(final SavePasswordCommand cmd) {
583+
protected Answer execute(final SavePasswordCommand cmd) {
584584
final String password = cmd.getPassword();
585585
final String routerPrivateIPAddress = cmd.getAccessDetail(NetworkElementCommand.ROUTER_IP);
586586
final String vmName = cmd.getVmName();
@@ -596,7 +596,7 @@ protected synchronized Answer execute(final SavePasswordCommand cmd) {
596596
}
597597
}
598598

599-
protected synchronized Answer execute (final DhcpEntryCommand cmd) {
599+
protected Answer execute (final DhcpEntryCommand cmd) {
600600
final Script command = new Script(_dhcpEntryPath, _timeout, s_logger);
601601
command.add("-r", cmd.getAccessDetail(NetworkElementCommand.ROUTER_IP));
602602
if (cmd.getVmIpAddress() != null) {
@@ -866,7 +866,7 @@ private Answer executeProxyLoadScan(final Command cmd, final long proxyVmId, fin
866866

867867

868868

869-
public synchronized String savePassword(final String privateIpAddress, final String vmIpAddress, final String password, final String localPath) {
869+
public String savePassword(final String privateIpAddress, final String vmIpAddress, final String password, final String localPath) {
870870
final Script command = new Script(_savepasswordPath, _startTimeout, s_logger);
871871
command.add("-r", privateIpAddress);
872872
command.add("-v", vmIpAddress);

plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2669,7 +2669,7 @@ private String doPingTest(final String domRIp, final String vmIp) {
26692669
return command.execute();
26702670
}
26712671

2672-
private synchronized Answer execute(MigrateCommand cmd) {
2672+
private Answer execute(MigrateCommand cmd) {
26732673
String vmName = cmd.getVmName();
26742674

26752675
State state = null;
@@ -3267,7 +3267,7 @@ protected void createVifs(VirtualMachineTO vmSpec,
32673267
}
32683268
}
32693269

3270-
protected synchronized StartAnswer execute(StartCommand cmd) {
3270+
protected StartAnswer execute(StartCommand cmd) {
32713271
VirtualMachineTO vmSpec = cmd.getVirtualMachine();
32723272
vmSpec.setVncAddr(cmd.getHostIp());
32733273
String vmName = vmSpec.getName();

0 commit comments

Comments
 (0)