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

在使用的过程中,经常碰见死锁的错误。 #5

Open
yezehui2002 opened this issue Dec 2, 2016 · 2 comments
Open

在使用的过程中,经常碰见死锁的错误。 #5

yezehui2002 opened this issue Dec 2, 2016 · 2 comments

Comments

@yezehui2002
Copy link

transaction error Error: doc._waitUnlock failed - areas$1-864305
是我的使用方法不对吗?还是我数据库配置的不对?请指教。

@rain1017
Copy link
Owner

死锁可能是使用不当造成的,一定要用相同的顺序对文档加锁。transcation1, lock A -> lock B. transcation2, lock B -> lock A => 死锁

@yezehui2002
Copy link
Author

yezehui2002 commented Mar 15, 2017 via email

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