From 863be2e6e2890b1bb0cf55b236c500ebc4a0a8c0 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Fri, 9 Aug 2019 10:22:56 +0200 Subject: [PATCH] src/backup/data_blob.rs: allow largert blob sizes (128MB) Need this for catalog files. --- src/backup/data_blob.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backup/data_blob.rs b/src/backup/data_blob.rs index 84aae9de..80d019bd 100644 --- a/src/backup/data_blob.rs +++ b/src/backup/data_blob.rs @@ -7,7 +7,7 @@ use super::*; /// Data blob binary storage format /// -/// Data blobs store arbitrary binary data (< 16MB), and can be +/// Data blobs store arbitrary binary data (< 128MB), and can be /// compressed and encrypted. A simply binary format is used to store /// them on disk or transfer them over the network. Please use index /// files to store large data files (".fidx" of ".didx"). @@ -69,7 +69,7 @@ impl DataBlob { compress: bool, ) -> Result { - if data.len() > 16*1024*1024 { + if data.len() > 128*1024*1024 { bail!("data blob too large ({} bytes).", data.len()); } @@ -215,7 +215,7 @@ impl DataBlob { compress: bool, ) -> Result { - if data.len() > 16*1024*1024 { + if data.len() > 128*1024*1024 { bail!("data blob too large ({} bytes).", data.len()); }