Skip to content

Commit 3f8df2e

Browse files
committed
add comment for allowing to remove or modify arc header files
1 parent a81a137 commit 3f8df2e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/include/buffer/arc_replacer.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ enum class AccessType { Unknown = 0, Lookup, Scan, Index };
2828

2929
enum class ArcStatus { MRU, MFU, MRU_GHOST, MFU_GHOST };
3030

31+
// TODO(student): You can modify or remove this struct as you like.
3132
struct FrameStatus {
3233
page_id_t page_id_;
3334
frame_id_t frame_id_;
@@ -60,11 +61,12 @@ class ArcReplacer {
6061
auto Size() -> size_t;
6162

6263
private:
63-
// TODO(student): implement me! You can replace these member variables as you like.
64+
// TODO(student): implement me! You can replace or remove these member variables as you like.
6465
std::list<frame_id_t> mru_;
6566
std::list<frame_id_t> mfu_;
6667
std::list<page_id_t> mru_ghost_;
6768
std::list<page_id_t> mfu_ghost_;
69+
6870
/* record entries in mru_ and mfu_
6971
* this uses frame_id_t to guarantee no duplicate records for the same
7072
* frame when they are alive */

0 commit comments

Comments
 (0)