Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Replace UPDATE with UPSERT on device_max_stream_id table #6363
Helps address #6311 (for the
We had a problem where when our multiple schema delta files were combined into a single schema, it left out an
This change changes the
There may be a more elegant way to do this, but this works.
dbkr left a comment
Hmm, so with this I think it will still reset after it's restarted with this new code, but then update correctly after that, so we swill still get one more round of UISIs after the update, after which it will be fine. We could add some code to the StreamIdGenerator where it loads the current ID to work around this... not sure if it's worthwhile though - probably better to just get this deployed.