Skip to content

Commit c8f29bb

Browse files
CactiFromDesertCactiFromDesert
authored andcommitted
style: apply clang-format formatting
1 parent 89dce96 commit c8f29bb

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/observer/storage/buffer/disk_buffer_pool.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,5 +351,4 @@ class BufferPoolManager final
351351
common::Mutex lock_;
352352
unordered_map<string, DiskBufferPool *> buffer_pools_;
353353
unordered_map<int32_t, DiskBufferPool *> id_to_buffer_pools_;
354-
atomic<int32_t> next_buffer_pool_id_{1}; // 系统启动时,会打开所有的表,这样就可以知道当前系统最大的ID是多少了
355-
};
354+
atomic<int32_t> next_buffer_pool_id_{1}; // System startup opens all tables to know current max ID};

src/observer/storage/buffer/page.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,12 @@ static constexpr PageNum BP_INVALID_PAGE_NUM = -1;
2323

2424
static constexpr PageNum BP_HEADER_PAGE = 0;
2525

26-
static constexpr const int BP_PAGE_SIZE = (1 << 13);
27-
static constexpr const int BP_PAGE_DATA_SIZE = (BP_PAGE_SIZE - sizeof(LSN) - sizeof(CheckSum));/**
28-
* @brief 表示一个页面,可能放在内存或磁盘上
29-
* @ingroup BufferPool
30-
*/
26+
static constexpr const int BP_PAGE_SIZE = (1 << 13);
27+
static constexpr const int BP_PAGE_DATA_SIZE =
28+
(BP_PAGE_SIZE - sizeof(LSN) - sizeof(CheckSum)); /**
29+
* @brief 表示一个页面,可能放在内存或磁盘上
30+
* @ingroup BufferPool
31+
*/
3132
struct Page
3233
{
3334
LSN lsn;

0 commit comments

Comments
 (0)