diff options
author | Masahiko Sawada <msawada@postgresql.org> | 2025-08-15 11:58:53 -0700 |
---|---|---|
committer | Masahiko Sawada <msawada@postgresql.org> | 2025-08-15 11:58:53 -0700 |
commit | 37265ca01f0f361a3aff23e27dfc81b66057a039 (patch) | |
tree | 97b1e2a9494b7ffbfb8154bfb9d6c688a4e49019 /src/test/authentication/t/003_peer.pl | |
parent | 2e2e7ff7b891fcb880c1c221e41208dcb0787290 (diff) |
Fix constant when extracting timestamp from UUIDv7.HEADorigin/masterorigin/HEADmaster
When extracting a timestamp from a UUIDv7, a conversion from
milliseconds to microseconds was using the incorrect constant
NS_PER_US instead of US_PER_MS. Although both constants have the same
value, this fix improves code clarity by using the semantically
correct constant.
Backpatch to v18, where UUIDv7 was introduced.
Author: Erik Nordström <erik@tigerdata.com>
Reviewed-by: Andrey Borodin <x4mmm@yandex-team.ru>
Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com>
Discussion: https://postgr.es/m/CACAa4V+i07eaP6h4MHNydZeX47kkLPwAg0sqe67R=M5tLdxNuQ@mail.gmail.com
Backpatch-through: 18
Diffstat (limited to 'src/test/authentication/t/003_peer.pl')
0 files changed, 0 insertions, 0 deletions