You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some of the funcs take a txn. This is out of step with the rest of client.Store, and is kind of incorrect, as store.LensRegistry() should really already be scoped to the store txn.
The text was updated successfully, but these errors were encountered:
## Relevant issue(s)
Resolves#1649#1592
## Description
Improves the way migrations handle transactions, as well as fixing a
couple of concurrency issues:
- Adds locks around the various registry properties, these maps can be
accessed concurrently and need to be protected.
- Removes the transaction continuity issue in the client.LenRegistry
interface, where db.LensRegistry() returns an object that does not
respect the transactionality of the parent store, and takes `txn`s as
input parameters to some of its functions. It does this by following the
same pattern as `db.db`. (#1649)
- Fixes the bugs in the lens package where migrations set were not
visible/accessible until after commit. They are now visible within the
transaction scope. (#1592)
It still does not provide transaction snapshot isolation, I see that
issue as relatively high effort low reward at the moment.
## Relevant issue(s)
Resolvessourcenetwork#1649sourcenetwork#1592
## Description
Improves the way migrations handle transactions, as well as fixing a
couple of concurrency issues:
- Adds locks around the various registry properties, these maps can be
accessed concurrently and need to be protected.
- Removes the transaction continuity issue in the client.LenRegistry
interface, where db.LensRegistry() returns an object that does not
respect the transactionality of the parent store, and takes `txn`s as
input parameters to some of its functions. It does this by following the
same pattern as `db.db`. (sourcenetwork#1649)
- Fixes the bugs in the lens package where migrations set were not
visible/accessible until after commit. They are now visible within the
transaction scope. (sourcenetwork#1592)
It still does not provide transaction snapshot isolation, I see that
issue as relatively high effort low reward at the moment.
Part of #1002
Some of the funcs take a txn. This is out of step with the rest of
client.Store
, and is kind of incorrect, asstore.LensRegistry()
should really already be scoped to the store txn.The text was updated successfully, but these errors were encountered: