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

Fixed a typo in disk_manager.h #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/storage/disk_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class DiskManager {
void set_fd2pageno(int fd, int start_page_no) { fd2pageno_[fd] = start_page_no; }

/**
* @description: 获得文件目前已分配的页面个数,即如果文件要分配一个新页面,需要从fd2pagenp_[fd]开始分配
* @description: 获得文件目前已分配的页面个数,即如果文件要分配一个新页面,需要从fd2pageno_[fd]开始分配
* @return {page_id_t} 已分配的页面个数
* @param {int} fd 文件对应的句柄
*/
Expand All @@ -96,4 +96,4 @@ class DiskManager {

int log_fd_ = -1; // WAL日志文件的文件句柄,默认为-1,代表未打开日志文件
std::atomic<page_id_t> fd2pageno_[MAX_FD]{}; // 文件中已经分配的页面个数,初始值为0
};
};