]> git.proxmox.com Git - proxmox-backup.git/commitdiff
src/bin/test_chunk_speed2.rs: test max chunk size
authorDietmar Maurer <dietmar@proxmox.com>
Sun, 19 May 2019 09:09:02 +0000 (11:09 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Sun, 19 May 2019 09:09:02 +0000 (11:09 +0200)
src/bin/test_chunk_speed2.rs

index c53912546e0c7ab00c44e63368f53cc88b135517..c56694cb226bc35708bff05fa3a6e5790328611e 100644 (file)
@@ -33,6 +33,7 @@ fn main() {
 
             chunk_stream
                 .for_each(move |chunk| {
+                    if chunk.len() > 16*1024*1024 { panic!("Chunk too large {}", chunk.len()); }
                     repeat.fetch_add(1, Ordering::SeqCst);
                     stream_len.fetch_add(chunk.len(), Ordering::SeqCst);
                     println!("Got chunk {}", chunk.len());