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

Multiversion Item Implementation and Tests #318

Merged
merged 3 commits into from
Sep 26, 2023
Merged

Conversation

udpatil
Copy link
Contributor

@udpatil udpatil commented Sep 18, 2023

Describe your changes and provide context

Add multiversion store data structures file, and implement the multiversioned item

Testing performed to validate your change

Added unit tests to verify behavior

@udpatil udpatil changed the title Occ multiversion store Multiversion Item Implementation and Tests Sep 18, 2023
@udpatil udpatil changed the base branch from main to occ-main September 18, 2023 14:12
return vItem.value, found
}

func (item *multiVersionItem) Set(index int, value []byte) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we make nextIndex a field in multiVersionItem so that the caller does not need to track it? unless there is a use case where the caller need the ability to set a prev index

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we aren't necessarily going to have each item set to an index in increasing order, right? we'll need to know when we are writing a value which TX index the value is being wrirtten for. That is what this index will represent, so the setter SHOULD have it available

Copy link
Collaborator

Choose a reason for hiding this comment

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

ah right that makes sense

store/multiversion/data_structures.go Outdated Show resolved Hide resolved
@udpatil udpatil merged commit 6c69ad6 into occ-main Sep 26, 2023
14 checks passed
@udpatil udpatil deleted the occ-multiversion-store branch September 26, 2023 19:55
udpatil added a commit that referenced this pull request Oct 17, 2023
## Describe your changes and provide context
Add multiversion store data structures file, and implement the
multiversioned item

## Testing performed to validate your change
Added unit tests to verify behavior
udpatil added a commit that referenced this pull request Oct 17, 2023
## Describe your changes and provide context
Add multiversion store data structures file, and implement the
multiversioned item

## Testing performed to validate your change
Added unit tests to verify behavior
udpatil added a commit that referenced this pull request Oct 17, 2023
## Describe your changes and provide context
Add multiversion store data structures file, and implement the
multiversioned item

## Testing performed to validate your change
Added unit tests to verify behavior
udpatil added a commit that referenced this pull request Jan 2, 2024
## Describe your changes and provide context
Add multiversion store data structures file, and implement the
multiversioned item

## Testing performed to validate your change
Added unit tests to verify behavior
udpatil added a commit that referenced this pull request Jan 8, 2024
## Describe your changes and provide context
Add multiversion store data structures file, and implement the
multiversioned item

## Testing performed to validate your change
Added unit tests to verify behavior
udpatil added a commit that referenced this pull request Jan 18, 2024
## Describe your changes and provide context
Add multiversion store data structures file, and implement the
multiversioned item

## Testing performed to validate your change
Added unit tests to verify behavior
udpatil added a commit that referenced this pull request Jan 18, 2024
## Describe your changes and provide context
Add multiversion store data structures file, and implement the
multiversioned item

## Testing performed to validate your change
Added unit tests to verify behavior
udpatil added a commit that referenced this pull request Jan 25, 2024
## Describe your changes and provide context
Add multiversion store data structures file, and implement the
multiversioned item

## Testing performed to validate your change
Added unit tests to verify behavior
udpatil added a commit that referenced this pull request Jan 31, 2024
## Describe your changes and provide context
Add multiversion store data structures file, and implement the
multiversioned item

## Testing performed to validate your change
Added unit tests to verify behavior
codchen pushed a commit that referenced this pull request Feb 6, 2024
## Describe your changes and provide context
Add multiversion store data structures file, and implement the
multiversioned item

## Testing performed to validate your change
Added unit tests to verify behavior
udpatil added a commit that referenced this pull request Feb 27, 2024
## Describe your changes and provide context
Add multiversion store data structures file, and implement the
multiversioned item

## Testing performed to validate your change
Added unit tests to verify behavior
udpatil added a commit that referenced this pull request Mar 1, 2024
## Describe your changes and provide context
Add multiversion store data structures file, and implement the
multiversioned item

## Testing performed to validate your change
Added unit tests to verify behavior
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.

3 participants