-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Replace generic CScopedDBTransaction with specialized CEvoDBScopedCommitter #3292
Replace generic CScopedDBTransaction with specialized CEvoDBScopedCommitter #3292
Conversation
…mitter This has the wanted side effect of proper locking of "cs" inside CommitCurTransaction and RollbackCurTransaction, which was not easily possible to implement in the generic version. This fixes some rare crashes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
…mitter (dashpay#3292) This has the wanted side effect of proper locking of "cs" inside CommitCurTransaction and RollbackCurTransaction, which was not easily possible to implement in the generic version. This fixes some rare crashes.
Base missing codablock@5857ec7#diff-789e7d6ecebb8de86cb5bb9f6ba0b6e4? |
@charlesrocket can you clarify pls? |
this pr’s base missing the commit above as it looks like |
Is it? Hmm... I don't see anything wrong, it looks exactly as expected imo https://github.com/dashpay/dash/pull/3292/files#diff-789e7d6ecebb8de86cb5bb9f6ba0b6e4L739 |
@charlesrocket As @UdjinM6 already noted, the changes from the mentioned commit are inside develop already. However, the v0.15.x branch is missing the mentioned changes, so the backported version of this PR looked slightly different, but it was an easy conflict resolution as the affected code was removed nevertheless. |
…mitter (dashpay#3292) This has the wanted side effect of proper locking of "cs" inside CommitCurTransaction and RollbackCurTransaction, which was not easily possible to implement in the generic version. This fixes some rare crashes.
…mitter (dashpay#3292) This has the wanted side effect of proper locking of "cs" inside CommitCurTransaction and RollbackCurTransaction, which was not easily possible to implement in the generic version. This fixes some rare crashes. Signed-off-by: cevap <[email protected]>
This has the wanted side effect of proper locking of "cs" inside
CommitCurTransaction and RollbackCurTransaction, which was not easily
possible to implement in the generic version. This fixes some rare crashes.
Example of a crash that is fixed by this: https://gitlab.com/dashpay/dash/-/jobs/406218969#L3504