Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Clean up locks in KvStore #3358

Merged
merged 2 commits into from
Mar 19, 2019

Conversation

mark-solana
Copy link
Contributor

Problem

See Issue #3352

Summary of Changes

Delete WriteState struct and implement functionality in free fns
Move commit to an AtomicUsize in KvStore
Move in-memory table to Kvstore
Remove locks from WriteLog and put WriteLog behind an Arc<RwLock<T>> in KvStore

Fixes #3352

commit is now an AtomicUsize

In-memory table and write-log are now struct members behind individual RwLocks
@mark-solana mark-solana requested a review from mvines March 18, 2019 23:15
@codecov
Copy link

codecov bot commented Mar 18, 2019

Codecov Report

Merging #3358 into master will decrease coverage by 0.3%.
The diff coverage is 13.2%.

@@           Coverage Diff            @@
##           master   #3358     +/-   ##
========================================
- Coverage    78.5%   78.2%   -0.4%     
========================================
  Files         154     151      -3     
  Lines       22195   21773    -422     
========================================
- Hits        17439   17039    -400     
+ Misses       4756    4734     -22

@mark-solana
Copy link
Contributor Author

I'm going to merge this without review as it doesn't contain any substantive changes and is blocking other things.

@mark-solana mark-solana merged commit 5d73ab2 into solana-labs:master Mar 19, 2019
@mark-solana mark-solana deleted the kvstore.writebatch branch March 19, 2019 00:06
bw-solana pushed a commit to bw-solana/solana that referenced this pull request Oct 29, 2024
alessandrod pushed a commit to alessandrod/solana that referenced this pull request Nov 5, 2024
…lana-labs#3358) (solana-labs#3363)

add missing description for solana-lattice-hash (solana-labs#3358)

(cherry picked from commit 51a114e)

Co-authored-by: Yihau Chen <yihau.chen@icloud.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant