This is because the DatabaseVersion is a (UUID, int) pair.
We want "<" to check if the UUIDs are the same, and the int is less than the other int. But today, it will do a lexicographic comparison of the UUIDs, which leads to unpredictable behavior.
This is because the DatabaseVersion is a (UUID, int) pair.
We want "<" to check if the UUIDs are the same, and the int is less than the other int. But today, it will do a lexicographic comparison of the UUIDs, which leads to unpredictable behavior.