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

Separate FileHandle and BufferManagedFileHandle #1365

Merged
merged 1 commit into from
Mar 10, 2023
Merged

Conversation

ray6080
Copy link
Contributor

@ray6080 ray6080 commented Mar 10, 2023

This PR separates FileHandle and BufferManagedFileHandle.
The former one is used for files that are not managed by BM, and the latter one is for ones managed by BM.

  • BufferManagedFileHandle supports both versioned and non-versioned file handles.
  • Page resize logic now are all unified to grow one page group (1024 pages) at one time (grow means page capacity will increase 1024 at one time, not actual num of pages).
  • StorageStructureID is moved from FileHandle to StorageStructure. StorageStructureID is mostly used to logically identify the semantic of a storage structure, for example, a node table column. FileHandle shouldn't be aware of those information.

src/include/storage/storage_structure/lists/list_headers.h Outdated Show resolved Hide resolved
src/include/storage/wal_replayer.h Outdated Show resolved Hide resolved
@ray6080 ray6080 merged commit 1a4ae3d into master Mar 10, 2023
@ray6080 ray6080 deleted the page-groups branch March 10, 2023 19:49
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