rpc add local_peer

This commit is contained in:
weisd
2024-08-27 17:15:47 +08:00
parent 78f3944b5d
commit 38fafed013
7 changed files with 38 additions and 25 deletions
+5 -1
View File
@@ -4,7 +4,7 @@ use crate::{
disks_layout::DisksLayout,
endpoints::EndpointServerPools,
error::{Error, Result},
peer::{PeerS3Client, S3PeerSys},
peer::S3PeerSys,
sets::Sets,
store_api::{
BucketInfo, BucketOptions, CompletePart, GetObjectReader, HTTPRangeSpec, ListObjectsInfo, ListObjectsV2Info,
@@ -104,6 +104,10 @@ impl ECStore {
})
}
pub fn local_disks(&self) -> Vec<DiskStore> {
self.local_disks.clone()
}
fn single_pool(&self) -> bool {
self.pools.len() == 1
}