mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-4459: need to sychronize create storage pool, otherwise, we can create the same pool with the same uuid in parallel
This commit is contained in:
parent
aa59b6f34d
commit
9fa56e28ec
|
|
@ -173,7 +173,8 @@ public class KVMStoragePoolManager {
|
|||
return createStoragePool(name, host, port, path, userInfo, type, true);
|
||||
}
|
||||
|
||||
private KVMStoragePool createStoragePool( String name, String host, int port,
|
||||
//Note: due to bug CLOUDSTACK-4459, createStoragepool can be called in parallel, so need to be synced.
|
||||
private synchronized KVMStoragePool createStoragePool( String name, String host, int port,
|
||||
String path, String userInfo,
|
||||
StoragePoolType type, boolean primaryStorage) {
|
||||
StorageAdaptor adaptor = getStorageAdaptor(type);
|
||||
|
|
|
|||
Loading…
Reference in New Issue