We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clock_gettime(CLOCK_REALTIME, &ts)
CLOCK_REALTIME may go backward, make generated uuid not sortable.
Normally uuid v7 generator will save last timestmap and use last_ts + 1 as current time if result of CLOCK_REALTIME is less then last timestamp.
last_ts + 1
for example: https://github.com/google/uuid/blob/0e97ed3b537927cb4afea366bc4cc36f6eb37e75/version7.go#L97 https://github.com/lefred/mysql-component-uuid_v7/blob/924b55e37f406812ca7ce4d84d877e18e3fe53e3/uuid_v7.h#L130
will be fixed by #15
The text was updated successfully, but these errors were encountered:
No branches or pull requests
CLOCK_REALTIME may go backward, make generated uuid not sortable.
Normally uuid v7 generator will save last timestmap and use
last_ts + 1
as current time if result of CLOCK_REALTIME is less then last timestamp.for example:
https://github.com/google/uuid/blob/0e97ed3b537927cb4afea366bc4cc36f6eb37e75/version7.go#L97
https://github.com/lefred/mysql-component-uuid_v7/blob/924b55e37f406812ca7ce4d84d877e18e3fe53e3/uuid_v7.h#L130
will be fixed by #15
The text was updated successfully, but these errors were encountered: