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

mount: Fix gid in oplog output #73

Merged
merged 1 commit into from
May 9, 2024
Merged

mount: Fix gid in oplog output #73

merged 1 commit into from
May 9, 2024

Conversation

lgsilva3087
Copy link
Contributor

The gid is encoded in some operations to indicate that the secondary groups were also sent. This is done by setting the most significative bit using this constant:

constexpr std::uint32_t kSecondaryGroupsBit = (std::uint32_t)1 << 31;

The oplog was printing the gid directly, without checking, showing 2147483650 (1 << 31) as gid. This commit checks the flag and prints the correct primary group.

The gid is encoded in some operations to indicate that the secondary
groups were also sent. This is done by setting the most significative
bit using this constant:

constexpr std::uint32_t kSecondaryGroupsBit = (std::uint32_t)1 << 31;

The oplog was printing the gid directly, without checking, showing
2147483650 (1 << 31) as gid. This commit checks the flag and prints
the correct primary group.
Copy link
Contributor

@aNeutrino aNeutrino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ictus4u ictus4u merged commit a081850 into dev May 9, 2024
2 checks passed
@ictus4u ictus4u deleted the fix-oplog-gid branch May 9, 2024 07:46
uristdwarf pushed a commit that referenced this pull request May 9, 2024
The gid is encoded in some operations to indicate that the secondary
groups were also sent. This is done by setting the most significative
bit using this constant:

constexpr std::uint32_t kSecondaryGroupsBit = (std::uint32_t)1 << 31;

The oplog was printing the gid directly, without checking, showing
2147483650 (1 << 31) as gid. This commit checks the flag and prints
the correct primary group.
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.

4 participants