Skip to content

Replace generic CScopedDBTransaction with specialized CEvoDBScopedCommitter - #3292

Merged
codablock merged 1 commit into
dashpay:developfrom
codablock:pr_scopedtransaction_lock
Jan 17, 2020
Merged

Replace generic CScopedDBTransaction with specialized CEvoDBScopedCommitter#3292
codablock merged 1 commit into
dashpay:developfrom
codablock:pr_scopedtransaction_lock

Conversation

@codablock

Copy link
Copy Markdown

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

…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.
@codablock codablock added this to the 15 milestone Jan 17, 2020

@UdjinM6 UdjinM6 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@codablock
codablock merged commit 5b4fe43 into dashpay:develop Jan 17, 2020
codablock added a commit to codablock/dash that referenced this pull request Jan 17, 2020
…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.
@charlesrocket

Copy link
Copy Markdown

@UdjinM6

UdjinM6 commented Jan 18, 2020

Copy link
Copy Markdown

@charlesrocket can you clarify pls?

@charlesrocket

charlesrocket commented Jan 18, 2020

Copy link
Copy Markdown

this pr’s base missing the commit above as it looks like

@UdjinM6

UdjinM6 commented Jan 18, 2020

Copy link
Copy Markdown

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

@codablock

Copy link
Copy Markdown
Author

@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.

FornaxA pushed a commit to ioncoincore/ion that referenced this pull request Jul 6, 2020
…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 <dev@i2pmail.org>
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

Successfully merging this pull request may close these issues.

3 participants