-
-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: initialize all transactionMu in Adapter constructors
constructor NewAdapterByDBUseTableName should initialize transactionMu, otherwise it will ~~panic~~ blocked due to that cas when calling Transaction Besides, a few other constructors also depend on NewAdapterByDBUseTableName, if transactionMu is not initialized in NewAdapterByDBUseTableName, it will blocked as well. Besides, why not consider use sync.Once to initialize transactionMu?
- Loading branch information
Showing
1 changed file
with
12 additions
and
12 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