| 827 | }; |
| 828 | |
| 829 | Status CheckValid() { |
| 830 | if (finalized_) { |
| 831 | return Status::Invalid("FileSystem factories were already finalized!"); |
| 832 | } |
| 833 | if (merged_into_ != nullptr) { |
| 834 | return Status::Invalid( |
| 835 | "FileSystem factories were merged into a different registry!"); |
| 836 | } |
| 837 | return Status::OK(); |
| 838 | } |
| 839 | |
| 840 | std::shared_mutex mutex_; |
| 841 | std::unordered_map<std::string, Result<Registered>> scheme_to_factory_; |