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

Validator: Make read operation use db.view instead of db.update #8434

Merged
merged 7 commits into from
Feb 12, 2021

Conversation

prestonvanloon
Copy link
Member

What type of PR is this?

Other

What does this PR do? Why is it needed?

It is unnecessary to use an Update operation here, which may be securing the Write lock and potentially blocking other db operations.

Which issues(s) does this PR fix?

N/A

Other notes for review

@codecov
Copy link

codecov bot commented Feb 11, 2021

Codecov Report

❗ No coverage uploaded for pull request base (develop@47fdb3b). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             develop    #8434   +/-   ##
==========================================
  Coverage           ?   57.79%           
==========================================
  Files              ?      454           
  Lines              ?    32359           
  Branches           ?        0           
==========================================
  Hits               ?    18702           
  Misses             ?    10795           
  Partials           ?     2862           

@prylabs-bulldozer prylabs-bulldozer bot merged commit 473172c into develop Feb 12, 2021
@delete-merged-branch delete-merged-branch bot deleted the validator-view-op branch February 12, 2021 19:07
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.

2 participants