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

Tell apart etcd lock session done from normal occasions #440

Merged
merged 1 commit into from
Jun 24, 2021

Conversation

jschwinger233
Copy link
Member

总之 <-session.Done() 返回的时候有两种状态:

  1. 我们还持有锁, 这时候就是所谓的被动释放
  2. 我们主动调用 Unlock + session.Close() 释放锁了, 这是正常用例

这个 pr 就区分了这两种状态, 正常用例不再抛错

@jschwinger233 jschwinger233 requested a review from tonicmuroq June 24, 2021 05:50
@CMGS CMGS merged commit 59f65e0 into projecteru2:master Jun 24, 2021
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.

2 participants