Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

feat(dup): implement load_mutation #370

Merged
merged 3 commits into from
Dec 28, 2019
Merged

Conversation

neverchanje
Copy link
Contributor

@neverchanje neverchanje commented Dec 25, 2019

load_mutation is a part of the duplication procedure:

while true
do
  load_mutations | ship_mutations
done

If currently there are newly added mutations on disk, it will call load_from_private_log to load them and goes on next stage, otherwise it sleeps 10sec like polling.

}

_log_on_disk->set_start_decree(_start_decree);
_log_on_disk->async();
Copy link
Contributor

Choose a reason for hiding this comment

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

这里是从_start_decree开始load,一直到当前所有的都load完?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

不是所有的, 是从 _start_decree 开始, 读一个 log block, 可以了解这个 PR: #317

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants