-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-17795] Build channel metadata retroactively if not present
Channel metadata has been added to statecouchdb to store the mapping of db namespaces to db names. However, the channel metadata is not available in v2.0/v2.1 peers. This PR adds support to retroactively build channel metadata at peer start if such metadata is not present in statecouchdb. When a state CouchDB is opened (GetDBHandle), it retoactively builds channel metadata if the metadata is not present. A NamespaceProvider is implemented to build possible namespaces for the channel. The possible namespaces will be verified by the existing databases and only namespaces matching existing databases will be added to channel metadata. Signed-off-by: Wenjian Qiao <wenjianq@gmail.com>
- Loading branch information
1 parent
6598f88
commit 57a5baa
Showing
22 changed files
with
888 additions
and
99 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.