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

server: clean up tombstone status #428

Merged
merged 2 commits into from
Dec 12, 2016

Conversation

overvenus
Copy link
Member

@overvenus overvenus requested review from siddontang and huachaohuang and removed request for siddontang December 9, 2016 08:34
@@ -394,6 +394,11 @@ func (c *RaftCluster) BuryStore(storeID uint64, force bool) error {
}

store.State = metapb.StoreState_Tombstone
store.stats.TotalRegionCount = 0
Copy link
Contributor

Choose a reason for hiding this comment

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

You can just set it to an empty struct.

Copy link
Member Author

Choose a reason for hiding this comment

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

Okay, though we may lose some infomation.

@huachaohuang
Copy link
Contributor

LGTM

@siddontang
Copy link
Contributor

LGTM

@huachaohuang huachaohuang merged commit 2202e99 into tikv:master Dec 12, 2016
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

3 participants