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
We decided that the appropriate fix here is to increment db_version each time we see a new db_version in the current transaction rather than only incrementing if the seen version is greater than the current version.
Todo:
Extend ext_data to keep track of db_versions seen in the current commit to crsql_changes
Update crsql_next_db_version(x) to bump the version if the provided version x was not yet seen
We currently only bump versions iff:
it is the first call to crsql_next_db_version
the provided value x is greater than the currently assigned next_db_version
Separately, we should be assigning to x + 1 rather than just x if x is greater than the currently assigned next_db_vesrion
There's at least one scenario where duplicate
seq
values may exist for the samedb_version
.Reproduction:
The text was updated successfully, but these errors were encountered: