Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

page_store: PageTxn alloc/dealloc pages #85

Merged
merged 3 commits into from
Oct 24, 2022

Conversation

w41ter
Copy link
Contributor

@w41ter w41ter commented Oct 21, 2022

This PR closes #78, closes #79.

@w41ter w41ter marked this pull request as draft October 21, 2022 09:52
@w41ter w41ter marked this pull request as ready for review October 24, 2022 04:03
// TODO: ensure that old_addr < new_addr so that we can recover the page table
// in order.
todo!()
assert!(old_addr < new_addr);
Copy link
Collaborator

Choose a reason for hiding this comment

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

The caller can not guarantee this condition. We should return Error::Again to let the caller retry instead of panicking here.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Hmm, the interface doesn't allow us to return an error 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@huachaohuang Besides this, are there any other questions? Maybe we can merge this first and fix the issue in above later with another PR.

@huachaohuang
Copy link
Collaborator

Let's merge it and fix the remain problems later.

@huachaohuang huachaohuang merged commit de7d202 into photondb:main Oct 24, 2022
@w41ter w41ter deleted the txn_pages_op branch October 24, 2022 06:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

drop PageTxn PageTxn alloc/dealloc pages
2 participants