You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To complete integration, needs to add a WriteBatch type implementing the WriteBatch [1] interface used by blocktree. This WriteBatch will also need shared access to the write-ahead log.
The Database trait is also missing a fn commit(&self, batch: Self::WriteBatch) -> Result<()> method [2].
Proposed Solution
Implement a WriteBatch type, integrate it with the store.
'Lift' the write-ahead log directly into the KvStore, put it behind an Arc and give a clone to each WriteBatch.
Problem
To complete integration, needs to add a WriteBatch type implementing the
WriteBatch
[1] interface used by blocktree. This WriteBatch will also need shared access to the write-ahead log.The
Database
trait is also missing afn commit(&self, batch: Self::WriteBatch) -> Result<()>
method [2].Proposed Solution
Implement a WriteBatch type, integrate it with the store.
'Lift' the write-ahead log directly into the
KvStore
, put it behind anArc
and give a clone to each WriteBatch.Add method to to trait
[1]
solana/core/src/blocktree/db.rs
Lines 50 to 52 in 9fac3b2
[2]
solana/core/src/blocktree/db.rs
Lines 12 to 34 in 9fac3b2
The text was updated successfully, but these errors were encountered: