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

Fix/ragdoll wal #18

Merged
merged 7 commits into from
Feb 19, 2024
Merged

Fix/ragdoll wal #18

merged 7 commits into from
Feb 19, 2024

Conversation

Trinoooo
Copy link
Owner

No description provided.

1. 部分常量抽出到utils包内,后续考虑常量分离
2. 去除logrus日志,全面替换成zap
3. 删除无用工具函数,包括lock与panic
4. segment增加opened状态字段,结构内字段转私有,外部只能通过方法访问
5. segment写与截断均实现COW(Copy On Write),保证写入文件的原子性
Copy link

codecov bot commented Feb 17, 2024

Codecov Report

Attention: 77 lines in your changes are missing coverage. Please review.

Comparison is base (7962974) 63.92% compared to head (b8a8898) 69.29%.
Report is 1 commits behind head on main.

Files Patch % Lines
storage/core/ragdoll/wal/segment.go 63.11% 35 Missing and 10 partials ⚠️
storage/core/ragdoll/wal/wal.go 70.64% 16 Missing and 16 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #18      +/-   ##
==========================================
+ Coverage   63.92%   69.29%   +5.36%     
==========================================
  Files           2        2              
  Lines         682      710      +28     
==========================================
+ Hits          436      492      +56     
+ Misses        168      140      -28     
  Partials       78       78              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Trinoooo Trinoooo marked this pull request as draft February 18, 2024 01:56
@Trinoooo Trinoooo removed the request for review from RocooHash February 18, 2024 01:56
@Trinoooo Trinoooo marked this pull request as ready for review February 18, 2024 14:00
@Trinoooo Trinoooo merged commit 00e8c68 into main Feb 19, 2024
6 checks passed
@Trinoooo Trinoooo deleted the fix/ragdoll_wal branch February 19, 2024 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants