]> git.proxmox.com Git - pve-guest-common.git/commitdiff
increase max reading replication state file size.
authorWolfgang Link <w.link@proxmox.com>
Wed, 17 Apr 2019 07:09:27 +0000 (09:09 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 17 Apr 2019 07:26:53 +0000 (07:26 +0000)
In this file, the error of a failed job will also be stored.
The default 32768 bytes are not very much.

This file is on the local filesystem so there is no filesystem
size restrictions like in /etc/pve.

PVE/ReplicationState.pm

index 75d34baec25dffbdcb2e9a4e2e93134601217e87..057cae6292196cc8732466a87190848dfda3d9ef 100644 (file)
@@ -31,7 +31,7 @@ sub read_state {
 
     return {} if ! -e $state_path;
 
-    my $raw = PVE::Tools::file_get_contents($state_path);
+    my $raw = PVE::Tools::file_get_contents($state_path, (1024 * 1024));
 
     return {} if $raw eq '';