Closed yuikns closed 5 months ago
pretty similar to #236
actually i just hoping to initialize that transactionMu asap, otherwise my current code will totally blocked in that CAS loop...
:tada: This PR is included in version 3.25.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
constructor NewAdapterByDBUseTableName should initialize transactionMu, otherwise it will
panicblocked due to that CAS when calling TransactionBesides, 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?