Skip to content
New issue

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

UUID byte order #34

Merged
merged 2 commits into from
Oct 19, 2024
Merged

UUID byte order #34

merged 2 commits into from
Oct 19, 2024

Conversation

ancapdev
Copy link
Owner

Byte ordering in MongoDB has a messy history. The old binary subtype 0x03 had implementation defined byte ordering. Technically drivers are meant to expose configuration to deal with this. Subtype 0x04 implements byte order in accordance with RFC 4122, from most to least significant byte, e.g., canonical network byte order.

See https://github.com/mongodb/specifications/blob/master/source/bson-binary-uuid/uuid.md for details.

Updating major version since this is a potentially data breaking change.

@ancapdev ancapdev merged commit e741085 into master Oct 19, 2024
8 of 12 checks passed
@ancapdev ancapdev deleted the uuid-byte-order branch October 19, 2024 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant