chore: remove global_ttl config (#3673)

* chore: remove global_ttl config

* fix: clippy
This commit is contained in:
Lei, HUANG
2024-04-09 10:00:50 +08:00
committed by GitHub
parent b51089fa61
commit 183fccbbd6
4 changed files with 0 additions and 15 deletions

View File

@@ -62,8 +62,6 @@ sync_write = false
data_home = "/tmp/greptimedb/"
# Storage type.
type = "File"
# TTL for all tables. Disabled by default.
# global_ttl = "7d"
# Cache configuration for object storage such as 'S3' etc.
# The local file cache directory

View File

@@ -170,8 +170,6 @@ retry_delay = "500ms"
data_home = "/tmp/greptimedb/"
# Storage type.
type = "File"
# TTL for all tables. Disabled by default.
# global_ttl = "7d"
# Cache configuration for object storage such as 'S3' etc.
# cache_path = "/path/local_cache"
# The local file cache capacity in bytes.

View File

@@ -14,8 +14,6 @@
//! Datanode configurations
use std::time::Duration;
use common_base::readable_size::ReadableSize;
use common_grpc::channel_manager::{
DEFAULT_MAX_GRPC_RECV_MESSAGE_SIZE, DEFAULT_MAX_GRPC_SEND_MESSAGE_SIZE,
@@ -65,13 +63,6 @@ impl ObjectStoreConfig {
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(default)]
pub struct StorageConfig {
/// Retention period for all tables.
///
/// Default value is `None`, which means no TTL.
///
/// The precedence order is: ttl in table options > global ttl.
#[serde(with = "humantime_serde")]
pub global_ttl: Option<Duration>,
/// The working directory of database
pub data_home: String,
#[serde(flatten)]
@@ -82,7 +73,6 @@ pub struct StorageConfig {
impl Default for StorageConfig {
fn default() -> Self {
Self {
global_ttl: None,
data_home: DEFAULT_DATA_HOME.to_string(),
store: ObjectStoreConfig::default(),
providers: vec![],

View File

@@ -346,7 +346,6 @@ pub(crate) fn create_datanode_opts(
data_home: home_dir,
providers,
store: default_store,
..Default::default()
},
mode,
wal: wal_config,