Merge pull request #1232 from influxdata/crepererum/issue1225

fix: set defaults for `persist` and `drop_non_persisted` to `true`
pull/24376/head
kodiakhq[bot] 2021-04-19 11:07:51 +00:00 committed by GitHub
commit ae36c1da88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 2 deletions

View File

@ -207,6 +207,7 @@ pub struct LifecycleRules {
pub sort_order: SortOrder,
/// Allow dropping data that has not been persisted to object storage
/// once the database size has exceeded the configured limits
pub drop_non_persisted: bool,
/// Persists chunks to object storage.

View File

@ -149,6 +149,7 @@ message LifecycleRules {
SortOrder sort_order = 6;
// Allow dropping data that has not been persisted to object storage
// once the database size has exceeded the configured limits
bool drop_non_persisted = 7;
// Persists chunks to object storage.

View File

@ -102,11 +102,12 @@ struct Create {
buffer_size_hard: usize,
/// Allow dropping data that has not been persisted to object storage
#[structopt(long)]
/// once the database size has exceeded the configured limits
#[structopt(long = "drop-persisted-only", parse(from_flag = std::ops::Not::not))]
drop_non_persisted: bool,
/// Persists chunks to object storage.
#[structopt(long)]
#[structopt(long = "skip-persist", parse(from_flag = std::ops::Not::not))]
persist: bool,
/// Do not allow writing new data to this database