Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remember keys_changed_at when reallocating after node replacement.
If a user's current storage node is decomissioned, they may end up without an active `users` record in the db, and there is code to handle this case by lazily recreating an active record on demand. Previously, this code would only copy `generation` and `client_state` fields, essentially forgotten any previously-seen value for the new `keys_changed_at` field. This commit fixes things so that value is also remembered. I do not expect this bug to have caused any issues in practice, since we already have a bunch of code to handle users for which we have not yet seen a value of `keys_changed_at`. But we should remember it when we can because it helps the server enforce that clients are behaving correctly.
- Loading branch information