refactor(runtime): guard replication stats globals (#4058)

This commit is contained in:
Zhengchao An
2026-06-29 19:55:38 +08:00
committed by GitHub
parent 9b6c6df81b
commit 27a491a730
7 changed files with 29 additions and 12 deletions
@@ -1407,6 +1407,10 @@ pub fn get_global_replication_pool() -> Option<Arc<DynReplicationPool>> {
runtime_sources::replication_pool()
}
pub fn get_global_replication_stats() -> Option<Arc<ReplicationStats>> {
runtime_sources::replication_stats()
}
pub async fn schedule_replication<S: ReplicationStorage>(
oi: ObjectInfo,
o: Arc<S>,