-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix race condition on getIsSchemaDatabase cache
We a client instance is used concurrently before the isSchemaDatabasePromise is resolved, this led to multiple executions of the underlying function. It should only be executed once, and the promise should be shared among callers, which is what this change enables.
- Loading branch information
1 parent
8da38aa
commit 2e803ad
Showing
2 changed files
with
6 additions
and
6 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