fix: #23 need test reduce_read_quorum_errs

This commit is contained in:
weisd
2024-09-24 16:21:02 +08:00
parent dbb6980e96
commit 84b1ebd2c8
7 changed files with 36 additions and 29 deletions
+2 -2
View File
@@ -98,7 +98,7 @@ impl Sets {
let set_disks = SetDisks {
disks: RwLock::new(set_drive),
set_drive_count,
parity_count: partiy_count,
default_parity_count: partiy_count,
set_index: i,
pool_index: pool_idx,
set_endpoints,
@@ -343,7 +343,7 @@ impl StorageAPI for Sets {
.get_object_reader(bucket, object, range, h, opts)
.await
}
async fn put_object(&self, bucket: &str, object: &str, data: PutObjReader, opts: &ObjectOptions) -> Result<()> {
async fn put_object(&self, bucket: &str, object: &str, data: PutObjReader, opts: &ObjectOptions) -> Result<ObjectInfo> {
self.get_disks_by_key(object).put_object(bucket, object, data, opts).await
}