refactor: clean runtime and test storage boundaries (#3573)

* refactor: clean runtime observability select boundaries

* refactor: clean test harness fuzz storage boundaries
This commit is contained in:
安正超
2026-06-18 18:09:25 +08:00
committed by GitHub
parent 8313767f75
commit c098184c49
49 changed files with 414 additions and 170 deletions
+3 -3
View File
@@ -316,13 +316,13 @@ impl NotifyConfigManager {
where
F: FnMut(&mut Config) -> bool,
{
let Some(store) = rustfs_ecstore::global::resolve_object_store_handle() else {
let Some(store) = crate::storage_compat::ecstore::global::resolve_object_store_handle() else {
return Err(NotificationError::StorageNotAvailable(
"Failed to save target configuration: server storage not initialized".to_string(),
));
};
let mut new_config = rustfs_ecstore::config::com::read_config_without_migrate(store.clone())
let mut new_config = crate::storage_compat::ecstore::config::com::read_config_without_migrate(store.clone())
.await
.map_err(|e| NotificationError::ReadConfig(e.to_string()))?;
@@ -338,7 +338,7 @@ impl NotifyConfigManager {
return Ok(());
}
rustfs_ecstore::config::com::save_server_config(store, &new_config)
crate::storage_compat::ecstore::config::com::save_server_config(store, &new_config)
.await
.map_err(|e| NotificationError::SaveConfig(e.to_string()))?;
+3 -1
View File
@@ -12,4 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.
pub type NotifyObjectInfo = rustfs_ecstore::store_api::ObjectInfo;
pub(crate) use rustfs_ecstore as ecstore;
pub type NotifyObjectInfo = ecstore::store_api::ObjectInfo;