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

RATIS-473. Clarify size and length methods on LogStream #9

Closed
wants to merge 1 commit into from

Conversation

joshelser
Copy link
Member

getLength() was meant to be the number of records in a log
but was implemented as the size in bytes of the records in
the log. This commit adds a getSize() which takes the old
implementation of getLength(), and then reimplements
getLength() as the number of records in the log.

getLength() was meant to be the number of records in a log
but was implemented as the size in bytes of the records in
the log. This commit adds a getSize() which takes the old
implementation of getLength(), and then reimplements
getLength() as the number of records in the log.
@joshelser
Copy link
Member Author

One more, @VladRodionov and @chrajeshbabu

@chrajeshbabu
Copy link
Contributor

It's looking good @joshelser .

@VladRodionov
Copy link

You probably have some minor issue (see my comment inline in files changed), otherwise is looking good, @joshelser

@joshelser joshelser closed this Jan 28, 2019
@joshelser joshelser deleted the 473-log-size-and-length branch January 28, 2019 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants