mirror of https://github.com/apache/cloudstack.git
server: Increase max length for VMInstanceVO.backupVolumes (#4967)
The default length is 255, which caused a truncation of data if the JSON object representing the backup volumes is too big. It caused errors when backups were made on VMs with 3 volumes or more. `vm_instance.backup_volumes` has the type TEXT, which has a maximal length of 65535 characters. Fixes #4965
This commit is contained in:
parent
92f9c9922c
commit
72f6612971
|
|
@ -200,7 +200,7 @@ public class VMInstanceVO implements VirtualMachine, FiniteStateObject<State, Vi
|
|||
@Column(name = "backup_external_id")
|
||||
protected String backupExternalId;
|
||||
|
||||
@Column(name = "backup_volumes")
|
||||
@Column(name = "backup_volumes", length = 65535)
|
||||
protected String backupVolumes;
|
||||
|
||||
public VMInstanceVO(long id, long serviceOfferingId, String name, String instanceName, Type type, Long vmTemplateId, HypervisorType hypervisorType, long guestOSId,
|
||||
|
|
|
|||
Loading…
Reference in New Issue