feat(perf): Add configurable bitrot skip for reads (#2110)

Co-authored-by: houseme <housemecn@gmail.com>
Co-authored-by: 安正超 <anzhengchao@gmail.com>
This commit is contained in:
evan slack
2026-03-10 20:59:00 -06:00
committed by GitHub
parent f00d01ec2d
commit 4b480727d6
9 changed files with 47 additions and 18 deletions
+4
View File
@@ -494,6 +494,7 @@ impl ObjectIO for SetDisks {
let object = object.to_owned();
let set_index = self.set_index;
let pool_index = self.pool_index;
let skip_verify = opts.skip_verify_bitrot;
// Move the read-lock guard into the task so it lives for the duration of the read
// let _guard_to_hold = _read_lock_guard; // moved into closure below
tokio::spawn(async move {
@@ -510,6 +511,7 @@ impl ObjectIO for SetDisks {
&disks,
set_index,
pool_index,
skip_verify,
)
.await
{
@@ -1654,6 +1656,7 @@ impl ObjectOperations for SetDisks {
let cloned_fi = fi.clone();
let set_index = self.set_index;
let pool_index = self.pool_index;
let skip_verify = opts.skip_verify_bitrot;
tokio::spawn(async move {
if let Err(e) = Self::get_object_with_fileinfo(
&cloned_bucket,
@@ -1666,6 +1669,7 @@ impl ObjectOperations for SetDisks {
&online_disks,
set_index,
pool_index,
skip_verify,
)
.await
{