mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix endpoint cnt decline overflow
Signed-off-by: Lei Jitang <leijitang@huawei.com>
This commit is contained in:
parent
804f93bdff
commit
4999c5707d
1 changed files with 3 additions and 1 deletions
|
@ -143,8 +143,10 @@ retry:
|
|||
if inc {
|
||||
ec.Count++
|
||||
} else {
|
||||
if ec.Count > 0 {
|
||||
ec.Count--
|
||||
}
|
||||
}
|
||||
ec.Unlock()
|
||||
|
||||
store := ec.n.getController().getStore(ec.DataScope())
|
||||
|
|
Loading…
Add table
Reference in a new issue