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

Close pilorama in degraded mode #2197

Merged
merged 1 commit into from
Jan 12, 2023

Conversation

fyrchik
Copy link
Contributor

@fyrchik fyrchik commented Jan 11, 2023

Signed-off-by: Evgenii Stratonikov e.stratonikov@yadro.com

acid-ant
acid-ant previously approved these changes Jan 11, 2023
@carpawell
Copy link
Member

Tests+changelog.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
@codecov
Copy link

codecov bot commented Jan 12, 2023

Codecov Report

Merging #2197 (74f7f92) into support/v0.35 (d87fc01) will increase coverage by 0.01%.
The diff coverage is 44.00%.

@@                Coverage Diff                @@
##           support/v0.35    #2197      +/-   ##
=================================================
+ Coverage          30.75%   30.77%   +0.01%     
=================================================
  Files                382      382              
  Lines              28237    28283      +46     
=================================================
+ Hits                8685     8703      +18     
- Misses             18820    18834      +14     
- Partials             732      746      +14     
Impacted Files Coverage Δ
pkg/local_object_storage/pilorama/boltdb.go 77.90% <44.00%> (-3.80%) ⬇️

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

@@ -71,12 +78,9 @@ func (t *boltForest) SetMode(m mode.Mode) error {
if t.mode == m {
return nil
}
if t.mode.ReadOnly() == m.ReadOnly() {
return nil
}

err := t.Close()
Copy link
Member

Choose a reason for hiding this comment

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

not related to that PR but why is it the t receiver for boltForest? i thought that i was looking at a test code for a second

Copy link
Contributor Author

Choose a reason for hiding this comment

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

t for forest of Trees (initially it was all about trees, so t stuck)

@fyrchik fyrchik merged commit c327305 into nspcc-dev:support/v0.35 Jan 12, 2023
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.

3 participants