Fix endpoint cnt decline overflow
Signed-off-by: Lei Jitang <leijitang@huawei.com>
This commit is contained in:
parent
404d7b6d47
commit
1010f32008
|
@ -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…
Reference in New Issue