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

Refactor: Introduce RefLogId as a reference to a log ID #1302

Closed
wants to merge 1 commit into from

Conversation

drmingdrmer
Copy link
Member

@drmingdrmer drmingdrmer commented Jan 15, 2025

Changelog

Refactor: Introduce RefLogId as a reference to a log ID

Existing LogIdOf<C> provides a minimal storage implementation for a
log ID with essential properties. In contrast, RefLogId offers the
same information as LogIdOf<C> while adding additional system-defined
properties.

For example, in the future, LogIdOf<C> defined by the application will
not need to implement Ord. However, RefLogId, used internally, will
provide a system-defined Ord implementation.

This change updates internal components to return RefLogId or accept
it as an argument where possible, enabling more flexibility and
consistency in handling log IDs.


This change is Reviewable

Existing `LogIdOf<C>` provides a minimal storage implementation for a
log ID with essential properties. In contrast, `RefLogId` offers the
same information as `LogIdOf<C>` while adding additional system-defined
properties.

For example, in the future, `LogIdOf<C>` defined by the application will
not need to implement `Ord`. However, `RefLogId`, used internally, will
provide a system-defined `Ord` implementation.

This change updates internal components to return `RefLogId` or accept
it as an argument where possible, enabling more flexibility and
consistency in handling log IDs.
@drmingdrmer drmingdrmer deleted the 181-fixup branch January 25, 2025 02:45
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