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

Snapshot after sync fix #3706

Merged
merged 2 commits into from
Jan 20, 2022
Merged

Snapshot after sync fix #3706

merged 2 commits into from
Jan 20, 2022

Conversation

BeniaminDrasovean
Copy link
Contributor

skip snapshot if trie was synced

@codecov
Copy link

codecov bot commented Jan 17, 2022

Codecov Report

Merging #3706 (220d4a2) into development (9598194) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development    #3706      +/-   ##
===============================================
- Coverage        73.79%   73.78%   -0.02%     
===============================================
  Files              589      589              
  Lines            76199    76213      +14     
===============================================
+ Hits             56229    56231       +2     
- Misses           15521    15534      +13     
+ Partials          4449     4448       -1     
Impacted Files Coverage Δ
trie/trieStorageManager.go 62.70% <0.00%> (-2.08%) ⬇️
p2p/libp2p/netMessenger.go 75.00% <0.00%> (+0.27%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a2e6d17...220d4a2. Read the comment docs.

iulianpascalau
iulianpascalau previously approved these changes Jan 18, 2022
@@ -741,18 +741,42 @@ func (tsm *trieStorageManager) ShouldTakeSnapshot() bool {
return false
}

if isTrieSynced(stsm) {
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

AdoAdoAdo
AdoAdoAdo previously approved these changes Jan 18, 2022
@AdoAdoAdo AdoAdoAdo dismissed stale reviews from iulianpascalau and themself via 220d4a2 January 19, 2022 13:05
Copy link
Collaborator

@gabi-vuls gabi-vuls left a comment

Choose a reason for hiding this comment

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

System test passed.

@gabi-vuls gabi-vuls merged commit f6f69d1 into development Jan 20, 2022
@gabi-vuls gabi-vuls deleted the snapshot-after-sync-fix branch January 20, 2022 10:43
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.

None yet

4 participants