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

feat(split): add partition_version #394

Merged
merged 9 commits into from
Feb 19, 2020

Conversation

hycdong
Copy link
Contributor

@hycdong hycdong commented Feb 12, 2020

partition_version is used to guarantee data consistence during partition split.
In normal cases, partition_version = partition_count-1, when this replica reject read and write request, partition_version = -1.
This pull request adds the definition of partition_version.

@hycdong hycdong changed the title feat(split): add partition_version feat(split): add partition_version [WIP] Feb 13, 2020
@hycdong hycdong marked this pull request as ready for review February 18, 2020 04:39
@hycdong hycdong changed the title feat(split): add partition_version [WIP] feat(split): add partition_version Feb 18, 2020
@acelyc111
Copy link
Member

没看到设置成-1的代码呢?

@hycdong
Copy link
Contributor Author

hycdong commented Feb 18, 2020

没看到设置成-1的代码呢?

这个pr只是加上这个变量的定义,设置成-1在后面的pr里

levy5307
levy5307 previously approved these changes Feb 18, 2020
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.

4 participants