-
Notifications
You must be signed in to change notification settings - Fork 70
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 the LogEntryVecDeque
in the log.rs
#800
Labels
good first issue
Good for newcomers
Comments
👋 Thanks for opening this issue! Reply with the following command on its own line to get help or engage:
|
Phoenix500526
pushed a commit
to GFX9/Xline
that referenced
this issue
May 28, 2024
Closes: xline-kv#368, xline-kv#800 Signed-off-by: Phoeniix Zhao <Phoenix500526@163.com>
Phoenix500526
pushed a commit
to GFX9/Xline
that referenced
this issue
May 28, 2024
Closes: xline-kv#368, xline-kv#800 Signed-off-by: Phoeniix Zhao <Phoenix500526@163.com>
Phoenix500526
pushed a commit
to GFX9/Xline
that referenced
this issue
May 28, 2024
Closes: xline-kv#368, xline-kv#800 Signed-off-by: Phoeniix Zhao <Phoenix500526@163.com>
Phoenix500526
pushed a commit
to Phoenix500526/Xline
that referenced
this issue
Jun 4, 2024
Closes: xline-kv#368, xline-kv#800 Signed-off-by: Phoeniix Zhao <Phoenix500526@163.com>
Phoenix500526
pushed a commit
to Phoenix500526/Xline
that referenced
this issue
Jun 12, 2024
Closes: xline-kv#368, xline-kv#800 Signed-off-by: Phoeniix Zhao <Phoenix500526@163.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After the pr #704 being merged, we got a
LogEntryVecDeque
implementation like this:As you can see,
batch_index
stores an offset. With this offset, we can calculate a log batch of size less than or equal tobatch_size
for any given indexi
(FYI: issue #368 ). We record the offset instead of the right bound in that the log may be compressed. However, there is a method namedli_to_pi
inLog
, which can transform the logical index to the physical index (The compression only changes the physical index ):Therefore, we think we can do some refactoring stuff: move
li_to_pi
and relevant fields, likebase_index
andbase_term
intoLogEntryVecDeque
.The text was updated successfully, but these errors were encountered: