Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
educg-net-24542-2332654
astar-3104
Commits
dbb3cac0
Commit
dbb3cac0
authored
11 months ago
by
tao tao
Browse files
Options
Download
Patches
Plain Diff
Initial commit
parent
99bad218
main
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/storage/disk_manager.cpp
+1
-1
src/storage/disk_manager.cpp
with
1 addition
and
1 deletion
+1
-1
src/storage/disk_manager.cpp
+
1
−
1
View file @
dbb3cac0
...
...
@@ -17,7 +17,7 @@ See the Mulan PSL v2 for more details. */
#include
"defs.h"
DiskManager
::
DiskManager
()
{
memset
(
fd2pageno_
,
0
,
MAX_FD
*
(
sizeof
(
std
::
atomic
<
page_id_t
>
)
/
sizeof
(
char
)));
}
//
DiskManager::DiskManager() { memset(fd2pageno_, 0, MAX_FD * (sizeof(std::atomic<page_id_t>) / sizeof(char))); }
/**
* @description: 将数据写入文件的指定磁盘页面中
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets