-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed RD-15170: Reuse existing DASes when registering the same creden…
…tial (#17) When a new DAS is registered, the cache introduced in this changeset, which indexes DAS instances by their options, is updated. If a duplicate registration is received for the same DAS type with identical options, the existing DAS instance is returned. This prevents the creation of redundant DAS instances and eliminates the need for synchronization with their external systems. * One index maps DAS IDs to their configurations, ensuring potential explicit IDs gotten from clients correspond to known configurations. * Another index (using Cache/CacheLoader) stores runtime DAS instances along with their configurations. When a DAS is created, the runtime DAS cache is checked to either add a new entry or reuse an existing matching instance.
- Loading branch information
Showing
1 changed file
with
69 additions
and
45 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