Skip to content

Commit 46c2019

Browse files
committed
chore: remove tail '/' for dir name
1 parent 5cf1b1c commit 46c2019

File tree

10 files changed

+22
-22
lines changed

10 files changed

+22
-22
lines changed

config/config.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
| `query` | -- | -- | The query engine options. |
100100
| `query.parallelism` | Integer | `0` | Parallelism of the query engine.<br/>Default to 0, which means the number of CPU cores. |
101101
| `storage` | -- | -- | The data storage options. |
102-
| `storage.data_home` | String | `./greptimedb_data/` | The working home directory. |
102+
| `storage.data_home` | String | `./greptimedb_data` | The working home directory. |
103103
| `storage.type` | String | `File` | The storage type used to store the data.<br/>- `File`: the data is stored in the local file system.<br/>- `S3`: the data is stored in the S3 object storage.<br/>- `Gcs`: the data is stored in the Google Cloud Storage.<br/>- `Azblob`: the data is stored in the Azure Blob Storage.<br/>- `Oss`: the data is stored in the Aliyun OSS. |
104104
| `storage.cache_path` | String | Unset | Read cache configuration for object storage such as 'S3' etc, it's configured by default when using object storage. It is recommended to configure it when using object storage for better performance.<br/>A local file directory, defaults to `{data_home}`. An empty string means disabling. |
105105
| `storage.cache_capacity` | String | Unset | The local file cache capacity in bytes. If your disk space is sufficient, it is recommended to set it larger. |
@@ -180,7 +180,7 @@
180180
| `region_engine.metric` | -- | -- | Metric engine options. |
181181
| `region_engine.metric.experimental_sparse_primary_key_encoding` | Bool | `false` | Whether to enable the experimental sparse primary key encoding. |
182182
| `logging` | -- | -- | The logging options. |
183-
| `logging.dir` | String | `./greptimedb_data/logs/` | The directory to store the log files. If set to empty, logs will not be written to files. |
183+
| `logging.dir` | String | `./greptimedb_data/logs` | The directory to store the log files. If set to empty, logs will not be written to files. |
184184
| `logging.level` | String | Unset | The log level. Can be `info`/`debug`/`warn`/`error`. |
185185
| `logging.enable_otlp_tracing` | Bool | `false` | Enable OTLP tracing. |
186186
| `logging.otlp_endpoint` | String | `http://localhost:4317` | The OTLP tracing endpoint. |
@@ -281,7 +281,7 @@
281281
| `datanode.client.connect_timeout` | String | `10s` | -- |
282282
| `datanode.client.tcp_nodelay` | Bool | `true` | -- |
283283
| `logging` | -- | -- | The logging options. |
284-
| `logging.dir` | String | `./greptimedb_data/logs/` | The directory to store the log files. If set to empty, logs will not be written to files. |
284+
| `logging.dir` | String | `./greptimedb_data/logs` | The directory to store the log files. If set to empty, logs will not be written to files. |
285285
| `logging.level` | String | Unset | The log level. Can be `info`/`debug`/`warn`/`error`. |
286286
| `logging.enable_otlp_tracing` | Bool | `false` | Enable OTLP tracing. |
287287
| `logging.otlp_endpoint` | String | `http://localhost:4317` | The OTLP tracing endpoint. |
@@ -312,7 +312,7 @@
312312

313313
| Key | Type | Default | Descriptions |
314314
| --- | -----| ------- | ----------- |
315-
| `data_home` | String | `./greptimedb_data/` | The working home directory. |
315+
| `data_home` | String | `./greptimedb_data` | The working home directory. |
316316
| `bind_addr` | String | `127.0.0.1:3002` | The bind address of metasrv. |
317317
| `server_addr` | String | `127.0.0.1:3002` | The communication server address for the frontend and datanode to connect to metasrv.<br/>If left empty or unset, the server will automatically use the IP address of the first network interface<br/>on the host, with the same port number as the one specified in `bind_addr`. |
318318
| `store_addrs` | Array | -- | Store server address default to etcd store.<br/>For postgres store, the format is:<br/>"password=password dbname=postgres user=postgres host=localhost port=5432"<br/>For etcd store, the format is:<br/>"127.0.0.1:2379" |
@@ -357,7 +357,7 @@
357357
| `wal.replication_factor` | Integer | `1` | Expected number of replicas of each partition. |
358358
| `wal.create_topic_timeout` | String | `30s` | Above which a topic creation operation will be cancelled. |
359359
| `logging` | -- | -- | The logging options. |
360-
| `logging.dir` | String | `./greptimedb_data/logs/` | The directory to store the log files. If set to empty, logs will not be written to files. |
360+
| `logging.dir` | String | `./greptimedb_data/logs` | The directory to store the log files. If set to empty, logs will not be written to files. |
361361
| `logging.level` | String | Unset | The log level. Can be `info`/`debug`/`warn`/`error`. |
362362
| `logging.enable_otlp_tracing` | Bool | `false` | Enable OTLP tracing. |
363363
| `logging.otlp_endpoint` | String | `http://localhost:4317` | The OTLP tracing endpoint. |
@@ -440,7 +440,7 @@
440440
| `query` | -- | -- | The query engine options. |
441441
| `query.parallelism` | Integer | `0` | Parallelism of the query engine.<br/>Default to 0, which means the number of CPU cores. |
442442
| `storage` | -- | -- | The data storage options. |
443-
| `storage.data_home` | String | `./greptimedb_data/` | The working home directory. |
443+
| `storage.data_home` | String | `./greptimedb_data` | The working home directory. |
444444
| `storage.type` | String | `File` | The storage type used to store the data.<br/>- `File`: the data is stored in the local file system.<br/>- `S3`: the data is stored in the S3 object storage.<br/>- `Gcs`: the data is stored in the Google Cloud Storage.<br/>- `Azblob`: the data is stored in the Azure Blob Storage.<br/>- `Oss`: the data is stored in the Aliyun OSS. |
445445
| `storage.cache_path` | String | Unset | Read cache configuration for object storage such as 'S3' etc, it's configured by default when using object storage. It is recommended to configure it when using object storage for better performance.<br/>A local file directory, defaults to `{data_home}`. An empty string means disabling. |
446446
| `storage.cache_capacity` | String | Unset | The local file cache capacity in bytes. If your disk space is sufficient, it is recommended to set it larger. |
@@ -521,7 +521,7 @@
521521
| `region_engine.metric` | -- | -- | Metric engine options. |
522522
| `region_engine.metric.experimental_sparse_primary_key_encoding` | Bool | `false` | Whether to enable the experimental sparse primary key encoding. |
523523
| `logging` | -- | -- | The logging options. |
524-
| `logging.dir` | String | `./greptimedb_data/logs/` | The directory to store the log files. If set to empty, logs will not be written to files. |
524+
| `logging.dir` | String | `./greptimedb_data/logs` | The directory to store the log files. If set to empty, logs will not be written to files. |
525525
| `logging.level` | String | Unset | The log level. Can be `info`/`debug`/`warn`/`error`. |
526526
| `logging.enable_otlp_tracing` | Bool | `false` | Enable OTLP tracing. |
527527
| `logging.otlp_endpoint` | String | `http://localhost:4317` | The OTLP tracing endpoint. |
@@ -573,7 +573,7 @@
573573
| `heartbeat.interval` | String | `3s` | Interval for sending heartbeat messages to the metasrv. |
574574
| `heartbeat.retry_interval` | String | `3s` | Interval for retrying to send heartbeat messages to the metasrv. |
575575
| `logging` | -- | -- | The logging options. |
576-
| `logging.dir` | String | `./greptimedb_data/logs/` | The directory to store the log files. If set to empty, logs will not be written to files. |
576+
| `logging.dir` | String | `./greptimedb_data/logs` | The directory to store the log files. If set to empty, logs will not be written to files. |
577577
| `logging.level` | String | Unset | The log level. Can be `info`/`debug`/`warn`/`error`. |
578578
| `logging.enable_otlp_tracing` | Bool | `false` | Enable OTLP tracing. |
579579
| `logging.otlp_endpoint` | String | `http://localhost:4317` | The OTLP tracing endpoint. |

config/datanode.example.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ provider = "raft_engine"
116116
## The directory to store the WAL files.
117117
## **It's only used when the provider is `raft_engine`**.
118118
## @toml2docs:none-default
119-
dir = "./greptimedb_data/wal/"
119+
dir = "./greptimedb_data/wal"
120120

121121
## The size of the WAL segment file.
122122
## **It's only used when the provider is `raft_engine`**.
@@ -252,7 +252,7 @@ parallelism = 0
252252
## The data storage options.
253253
[storage]
254254
## The working home directory.
255-
data_home = "./greptimedb_data/"
255+
data_home = "./greptimedb_data"
256256

257257
## The storage type used to store the data.
258258
## - `File`: the data is stored in the local file system.
@@ -608,7 +608,7 @@ experimental_sparse_primary_key_encoding = false
608608
## The logging options.
609609
[logging]
610610
## The directory to store the log files. If set to empty, logs will not be written to files.
611-
dir = "./greptimedb_data/logs/"
611+
dir = "./greptimedb_data/logs"
612612

613613
## The log level. Can be `info`/`debug`/`warn`/`error`.
614614
## @toml2docs:none-default

config/flownode.example.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ retry_interval = "3s"
7373
## The logging options.
7474
[logging]
7575
## The directory to store the log files. If set to empty, logs will not be written to files.
76-
dir = "./greptimedb_data/logs/"
76+
dir = "./greptimedb_data/logs"
7777

7878
## The log level. Can be `info`/`debug`/`warn`/`error`.
7979
## @toml2docs:none-default

config/frontend.example.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ tcp_nodelay = true
195195
## The logging options.
196196
[logging]
197197
## The directory to store the log files. If set to empty, logs will not be written to files.
198-
dir = "./greptimedb_data/logs/"
198+
dir = "./greptimedb_data/logs"
199199

200200
## The log level. Can be `info`/`debug`/`warn`/`error`.
201201
## @toml2docs:none-default

config/metasrv.example.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
## The working home directory.
2-
data_home = "./greptimedb_data/"
2+
data_home = "./greptimedb_data"
33

44
## The bind address of metasrv.
55
bind_addr = "127.0.0.1:3002"
@@ -191,7 +191,7 @@ create_topic_timeout = "30s"
191191
## The logging options.
192192
[logging]
193193
## The directory to store the log files. If set to empty, logs will not be written to files.
194-
dir = "./greptimedb_data/logs/"
194+
dir = "./greptimedb_data/logs"
195195

196196
## The log level. Can be `info`/`debug`/`warn`/`error`.
197197
## @toml2docs:none-default

config/standalone.example.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ provider = "raft_engine"
161161
## The directory to store the WAL files.
162162
## **It's only used when the provider is `raft_engine`**.
163163
## @toml2docs:none-default
164-
dir = "./greptimedb_data/wal/"
164+
dir = "./greptimedb_data/wal"
165165

166166
## The size of the WAL segment file.
167167
## **It's only used when the provider is `raft_engine`**.
@@ -343,7 +343,7 @@ parallelism = 0
343343
## The data storage options.
344344
[storage]
345345
## The working home directory.
346-
data_home = "./greptimedb_data/"
346+
data_home = "./greptimedb_data"
347347

348348
## The storage type used to store the data.
349349
## - `File`: the data is stored in the local file system.
@@ -699,7 +699,7 @@ experimental_sparse_primary_key_encoding = false
699699
## The logging options.
700700
[logging]
701701
## The directory to store the log files. If set to empty, logs will not be written to files.
702-
dir = "./greptimedb_data/logs/"
702+
dir = "./greptimedb_data/logs"
703703

704704
## The log level. Can be `info`/`debug`/`warn`/`error`.
705705
## @toml2docs:none-default

src/common/config/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub fn metadata_store_dir(store_dir: &str) -> String {
2727
}
2828

2929
/// The default data home directory.
30-
pub const DEFAULT_DATA_HOME: &str = "./greptimedb_data/";
30+
pub const DEFAULT_DATA_HOME: &str = "./greptimedb_data";
3131

3232
#[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq, Eq)]
3333
#[serde(default)]

src/common/telemetry/src/logging.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ use crate::tracing_sampler::{create_sampler, TracingSampleOptions};
3838
pub const DEFAULT_OTLP_ENDPOINT: &str = "http://localhost:4317";
3939

4040
/// The default logs directory.
41-
pub const DEFAULT_LOGGING_DIR: &str = "logs/";
41+
pub const DEFAULT_LOGGING_DIR: &str = "logs";
4242

4343
// Handle for reloading log level
4444
pub static RELOAD_HANDLE: OnceCell<tracing_subscriber::reload::Handle<Targets, Registry>> =

src/meta-srv/src/metasrv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ use crate::state::{become_follower, become_leader, StateRef};
7373

7474
pub const TABLE_ID_SEQ: &str = "table_id";
7575
pub const FLOW_ID_SEQ: &str = "flow_id";
76-
pub const METASRV_DATA_DIR: &str = "metasrv/";
76+
pub const METASRV_DATA_DIR: &str = "metasrv";
7777

7878
// The datastores that implements metadata kvbackend.
7979
#[derive(Clone, Debug, PartialEq, Serialize, Default, Deserialize, ValueEnum)]

src/store-api/src/path_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use crate::storage::{RegionId, RegionNumber, TableId};
1919

2020
/// WAL dir for local file storage
21-
pub const WAL_DIR: &str = "wal/";
21+
pub const WAL_DIR: &str = "wal";
2222

2323
/// Data dir for table engines
2424
pub const DATA_DIR: &str = "data/";

0 commit comments

Comments
 (0)