-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Store the updated fabric info when bringing up controller on existing…
… fabric. (#18260) Right now bringing up a controller on an existing fabric updates the in-memory fabric table but does not store the updated data. This is not very consistent with our desire to not even keep the fabric table in memory, and leads to inconsistent behavior if someone later reloads the fabric table from storage in some way. Specific changes: 1. Change FabricInfo::SetFabricInfo to not modify any member state until validation of the incoming info is complete, so we won't corrupt an existing fabric due to mistaken input and leave it in a bad state. 2. If updating the existing fabric in ProcessControllerNOCChain succeeds, store the updated fabric info. This is done outside the fabric table for now, pending changes to the fabric table to store things itself instead of keeping them in RAM.
- Loading branch information
1 parent
7cdb27e
commit 2306904
Showing
4 changed files
with
34 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters