forked from sourcenetwork/defradb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Remove shared mutable state between database instances (sourcene…
…twork#2777) ## Relevant issue(s) Resolves sourcenetwork#2774 ## Description Removes shared mutable GQL state between database instances. These global static GQL type variables are actually mutated by the GQL library we use at different points during database init, and schema update. This means that when multiple Defra instances are created in the same process they were sharing state. As well as just being an inherently bad thing, this also prevented us from running tests within packages in parallel using `t.Parallel()` as the race detector would complain.
- Loading branch information
1 parent
5855969
commit c6c2373
Showing
11 changed files
with
606 additions
and
539 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
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.