Skip to content

ledger: move catchpoint sql code into storage package#4813

Merged
algorandskiy merged 3 commits intoalgorand:masterfrom
icorderi:refactor/accountdb-2
Nov 22, 2022
Merged

ledger: move catchpoint sql code into storage package#4813
algorandskiy merged 3 commits intoalgorand:masterfrom
icorderi:refactor/accountdb-2

Conversation

@icorderi
Copy link
Copy Markdown
Contributor

Summary

Moving some of the catchpoint sql queries into the store package.

Previous parts of this refactor:

Test Plan

Existing tests.

@icorderi icorderi self-assigned this Nov 18, 2022
@icorderi icorderi force-pushed the refactor/accountdb-2 branch 3 times, most recently from 41eb8f4 to 694dd4e Compare November 18, 2022 20:13
@icorderi icorderi force-pushed the refactor/accountdb-2 branch from 694dd4e to 245d0dd Compare November 21, 2022 21:34
@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 22, 2022

Codecov Report

Merging #4813 (37c3b3f) into master (60d0c09) will decrease coverage by 0.16%.
The diff coverage is 34.56%.

❗ Current head 37c3b3f differs from pull request most recent head dc45020. Consider uploading reports for the commit dc45020 to get more accurate results

@@            Coverage Diff             @@
##           master    #4813      +/-   ##
==========================================
- Coverage   54.20%   54.03%   -0.17%     
==========================================
  Files         419      420       +1     
  Lines       53750    53765      +15     
==========================================
- Hits        29137    29054      -83     
- Misses      22231    22337     +106     
+ Partials     2382     2374       -8     
Impacted Files Coverage Δ
ledger/accountdb.go 68.06% <ø> (-0.73%) ⬇️
ledger/store/catchpoint.go 0.00% <0.00%> (ø)
ledger/trackerdb.go 46.66% <40.00%> (+0.02%) ⬆️
ledger/catchupaccessor.go 63.93% <82.75%> (+0.33%) ⬆️
ledger/catchpointtracker.go 59.26% <100.00%> (+0.24%) ⬆️
ledger/tracker.go 71.91% <0.00%> (-2.98%) ⬇️
network/wsPeer.go 68.97% <0.00%> (-2.39%) ⬇️
agreement/cryptoVerifier.go 67.60% <0.00%> (-2.12%) ⬇️
agreement/proposalManager.go 96.07% <0.00%> (-1.97%) ⬇️
data/transactions/verify/txn.go 75.11% <0.00%> (-0.93%) ⬇️
... and 7 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Comment thread ledger/store/catchpoint.go
Comment thread ledger/catchupaccessor.go
stagingWriter: &stagingWriterImpl{wdb: ledger.trackerDB().Wdb},
log: log,
ledger: ledger,
catchpointStore: store.NewCatchpointSQLReaderWriter(ledger.trackerDB().Wdb.Handle),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

in theory we might use separate reader and writer handles. for sqlite it does not matter but still

Comment thread ledger/catchpointtracker.go
@icorderi icorderi force-pushed the refactor/accountdb-2 branch from 37c3b3f to dc45020 Compare November 22, 2022 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants