mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-05 12:57:42 +00:00
8185376b90
* refactor(ecstore): migrate config globals into ECStore struct fields Phase 2 of global singleton consolidation. Add server_config and storage_class fields to ECStore, sharing the same underlying data as the process-global LazyLock statics. New ECStore fields: - server_config: RwLock<Option<Config>> - storage_class: RwLock<storageclass::Config> New async accessor methods: - get_server_config() / set_server_config() - get_storage_class() / set_storage_class() Fields initialized with defaults in ECStore::new(), synced from globals after init() completes. Global functions preserved for backward compatibility. 1160 tests pass, clippy clean, full workspace compiles. * fix: address PR #3219 review comments - delegate to globals Accessors now delegate to process-global statics to avoid state drift: - get_server_config() delegates to get_global_server_config() - set_server_config() updates both global and local field - get_storage_class() delegates to get_global_storage_class() - set_storage_class() updates both global and local field - Removed stale sync code from init() - Changed fields to std::sync::RwLock for sync access 1160 tests pass. * fix: correct import order for cargo fmt * fix: simplify config accessors - delegate to globals without local state Remove local server_config and storage_class fields from ECStore. Accessors now purely delegate to process-global statics, eliminating the state drift risk identified in review. 1160 tests pass, formatting clean.
RustFS ECStore - Erasure Coding Storage
High-performance erasure coding storage engine for RustFS distributed object storage
📖 Documentation
· 🐛 Bug Reports
· 💬 Discussions
📖 Overview
RustFS ECStore provides erasure coding storage capabilities for the RustFS distributed object storage system. For the complete RustFS experience, please visit the main RustFS repository.
✨ Features
- Reed-Solomon erasure coding implementation
- Configurable redundancy levels (N+K schemes)
- Automatic data healing and reconstruction
- Multi-drive support with intelligent placement
- Parallel encoding/decoding for performance
- Efficient disk space utilization
📚 Documentation
For comprehensive documentation, examples, and usage guides, please visit the main RustFS repository.
📄 License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Copyright 2024 RustFS Team
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
RustFS is a trademark of RustFS, Inc.
All other trademarks are the property of their respective owners.
Made with ❤️ by the RustFS Storage Team
