-
Notifications
You must be signed in to change notification settings - Fork 3
[#159] WAL 로그 저장 포맷 선택 및 구현 #169
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
Conversation
Pull reviewers statsStats of the last 14 days for rrdb:
|
|
✅ Total Coverage: 55.06% |
|
✅ Total Coverage: 54.64% |
|
✅ Total Coverage: 54.95% |
|
✅ Total Coverage: 54.64% |
|
✅ Total Coverage: 54.67% |
| wal_enabled = true | ||
| wal_directory = "/var/lib/rrdb/wal" | ||
| wal_segment_size = 16777216 | ||
| wal_extension = "log" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: 추후에는 yaml 이든, 자체 포맷 구현이든 포맷 하나 골라서 구조체 형태로 기본값 정의하기
|
✅ Total Coverage: 54.56% |
|
✅ Total Coverage: 54.48% |
|
✅ Total Coverage: 54.47% |
|
✅ Total Coverage: 54.15% |
|
✅ Total Coverage: 55.14% |
|
✅ Total Coverage: 54.81% |
|
✅ Total Coverage: 54.81% |
|
단순히 초기에 값을 불러오는 것을 넘어서, |
myyrakle
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGBTM
| pub entry_type: EntryType, | ||
| pub data: Option<Vec<u8>>, | ||
| pub timestamp: u128, | ||
| pub transaction_id: Option<u64>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
u64 넘는 경우는 일단 상정하지 않는걸로?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
네 우선은 그렇게 생각중이에요. 추후 변동 가능
| where | ||
| T: WALEncoder<Vec<WALEntry>>, | ||
| { | ||
| /// The sequence number of the WAL file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
한국어로 쓸거면 그냥 다 한국어로 쓰죠
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
네 주석 싹 다 한국어로 바꿔놓을게요
| let last_entry = match saved_entries.last() { | ||
| Some(entry) => entry, | ||
| None => return Ok((max_sequence + 1, Vec::new())), | ||
| }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이건 어떤가요
let Some(last_entry) = saved_entries.last() else {
return Ok((max_sequence + 1, Vec::new()))
};호불호 갈릴 수 있긴 한데
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
좋은 것 같습니다. 한번도 안 써봤던 문법이네요
resolves: #159
WAL