-
Notifications
You must be signed in to change notification settings - Fork 197
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
renamed fullArchive to cleanOldEpochsData #2084
Conversation
@@ -40,7 +40,7 @@ func NewStorageServiceFactory( | |||
if config == nil { | |||
return nil, storage.ErrNilConfig | |||
} | |||
if config.StoragePruning.NumEpochsToKeep < minimumNumberOfEpochsToKeep && !config.StoragePruning.FullArchive { | |||
if config.StoragePruning.NumEpochsToKeep < minimumNumberOfEpochsToKeep && !config.StoragePruning.CleanOldEpochsData { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is cleanOldEpochsData relevant here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the node doesn't remove old epochs, then there is no use for the NumEpochsToKeep
so the check shouldn't be blocking. I can remove the condition if needed. Also, thanks for finding this because I have to change the boolean condition
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok then you can keep the check, but remove negation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
System tests passed.
renamed boolean parameter
FullArchive
toCleanOldEpochsData