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

乐观锁冲突重试时并没有更新版本号 #10

Closed
roverbeta opened this issue Aug 18, 2018 · 1 comment
Closed

乐观锁冲突重试时并没有更新版本号 #10

roverbeta opened this issue Aug 18, 2018 · 1 comment

Comments

@roverbeta
Copy link

do {
numAttempts++;
try {
ret = goodsMapper.reduceStockByVersion(sg);
} catch (Exception e) {
e.printStackTrace();
}
if (ret != 0)
break;
} while (numAttempts < DEFAULT_MAX_RETRIES);

@zaiyunduan123
Copy link
Owner

已修复,谢谢

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

No branches or pull requests

2 participants