Skip to content

Draft: Replace logical ids with edit offsets, add edit offsets to slots#15

Open
gabrielbornstein wants to merge 104 commits intomathworks:mainfrom
gabrielbornstein:gbornste/add-offsets-to-slots
Open

Draft: Replace logical ids with edit offsets, add edit offsets to slots#15
gabrielbornstein wants to merge 104 commits intomathworks:mainfrom
gabrielbornstein:gbornste/add-offsets-to-slots

Conversation

@gabrielbornstein
Copy link
Copy Markdown
Collaborator

Opening up this MR as a draft. I still likely need to make some changes and add some additional tests, just wanted an easy place to look at my diffs and give myself some review.

@gabrielbornstein gabrielbornstein self-assigned this Mar 18, 2026
Comment thread src/turtle_kv/change_log_block.cpp Outdated
//==#==========+==+=+=++=+++++++++++-+-+--+----- --- -- - - - -
//
/*explicit*/ ChangeLogBlock::ChangeLogBlock(u64 owner_id,
/*explicit*/ ChangeLogBlock::ChangeLogBlock(u64 offset,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Giving this one a more descriptive name...

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'm also wondering if we should wrap this type. I sort of regret not doing this in llfs, with llfs::slot_offset_type. We could use a BATT_STRONG_TYPEDEF, but I'm thinking that maybe even implicit conversion to the primitive type could be problematic.

We can talk about this next time we meet.

tonyastolfi and others added 30 commits April 6, 2026 16:02
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.

2 participants