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

Feat/impl splistore #6231

Open
wants to merge 33 commits into
base: master
Choose a base branch
from
Open

Feat/impl splistore #6231

wants to merge 33 commits into from

Conversation

LinZexiao
Copy link
Collaborator

关联的Issues (Related Issues)

close #5182

改动 (Proposed Changes)

附注 (Additional Info)

自查清单 (Checklist)

在你认为本 PR 满足被审阅的标准之前,需要确保 / Before you mark the PR ready for review, please make sure that:

  • 符合Venus项目管理规范中关于PR的相关标准 / The PR follows the PR standards set out in the Venus project management guidelines
  • 具有清晰明确的commit message / All commits have a clear commit message.
  • 包含相关的的测试用例或者不需要新增测试用例 / This PR has tests for new functionality or change in behaviour or not need to add new tests.
  • 存在兼容性问题(接口, 配置,数据,灰度),如果存在需要进行文档说明 / This PR has compatibility issues (API, Configuration, Data, GrayRelease), if so, need to be documented.
  • 包含相关的的指南以及文档或者不需要新增文档 / This PR has updated usage guidelines and documentation or not need
  • 通过必要的检查项 / All checks are green

app/node/node.go Outdated
func (r *RepoKeeper) Rollback() error {
ds := r.repo.Datastore()
if ds == nil {
fmt.Println("no blockstore found!")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

返回 error

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已更正

app/node/node.go Outdated

rb, ok := ds.(splitstore.Controller)
if !ok {
fmt.Println("split store was disabled")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!ok,rb 是 nil,后续使用 rb 会 panic 吧

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已更正

}

func (v *syncVisitor) Stop() {
v.mutex.Lock()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

有啥特殊意义?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可以动态地决定什么时候停止遍历, 暂时用不到, 已经移除

@codecov-commenter
Copy link

Codecov Report

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

Comparison is base (5f8e7ba) 25% compared to head (0bc46e3) 26%.
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff            @@
##           master   #6231     +/-   ##
========================================
  Coverage      25%     26%             
========================================
  Files         631     638      +7     
  Lines       77885   78910   +1025     
========================================
+ Hits        20233   20837    +604     
- Misses      54985   55348    +363     
- Partials     2667    2725     +58     

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.

[venus] splitstore自动截链,自动prune?
3 participants