fix: restore bitrot stream and checksum metadata (#2542)

This commit is contained in:
安正超
2026-04-15 08:36:55 +08:00
committed by GitHub
parent 68d3dba9fc
commit 1979fc7fb1
2 changed files with 30 additions and 2 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ pub async fn create_bitrot_reader(
Ok(Some(reader))
} else if let Some(disk) = disk {
// Read from disk
if use_zero_copy {
if use_zero_copy && disk.is_local() {
// Try zero-copy read first (uses mmap on Unix)
let start = Instant::now();
match disk.read_file_zero_copy(bucket, path, offset, length).await {