mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-21 11:56:38 +00:00
refactor: centralize ecstore locality runtime sources (#3808)
This commit is contained in:
@@ -14,7 +14,7 @@ use super::{
|
||||
RebalanceBucketOutcome,
|
||||
};
|
||||
use crate::error::{Error, Result};
|
||||
use crate::global::get_global_endpoints;
|
||||
use crate::runtime_sources;
|
||||
use crate::store::ECStore;
|
||||
use std::collections::HashSet;
|
||||
use std::sync::Arc;
|
||||
@@ -120,11 +120,7 @@ impl ECStore {
|
||||
continue;
|
||||
}
|
||||
|
||||
if !get_global_endpoints()
|
||||
.as_ref()
|
||||
.get(idx)
|
||||
.is_some_and(|v| v.endpoints.as_ref().first().is_some_and(|e| e.is_local))
|
||||
{
|
||||
if !runtime_sources::endpoint_pool_is_local(idx) {
|
||||
debug!(
|
||||
event = EVENT_REBALANCE_STATE,
|
||||
component = LOG_COMPONENT_ECSTORE,
|
||||
|
||||
Reference in New Issue
Block a user