Skip to content

Commit

Permalink
chore: let SelectType use snake case
Browse files Browse the repository at this point in the history
  • Loading branch information
fengjiachun committed Dec 20, 2023
1 parent 5c44917 commit 629cf98
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions docs/v0.4/en/developer-guide/metasrv/selector.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ You can configure the `Selector` when starting the `MetaSrv` service, with the d
For example:

```shell
cargo run -- metasrv start --selector LoadBased
cargo run -- metasrv start --selector load_based
```

```shell
cargo run -- metasrv start --selector LeaseBased
cargo run -- metasrv start --selector lease_based
```
4 changes: 2 additions & 2 deletions docs/v0.4/en/user-guide/operations/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,8 @@ server_addr = "127.0.0.1:3002"
# Etcd server addresses, "127.0.0.1:2379" by default.
store_addr = "127.0.0.1:2379"
# Datanode selector type.
# - "LeaseBased" (default value).
# - "LoadBased"
# - "lease_based" (default value).
# - "load_based"
# For details, please see "https://docs.greptime.com/developer-guide/meta/selector".
selector = "LeaseBased"
# Store data in memory, false by default.
Expand Down
4 changes: 2 additions & 2 deletions docs/v0.4/zh/developer-guide/metasrv/selector.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
例如:

```shell
cargo run -- metasrv start --selector LoadBased
cargo run -- metasrv start --selector load_based
```

```shell
cargo run -- metasrv start --selector LeaseBased
cargo run -- metasrv start --selector lease_based
```
6 changes: 3 additions & 3 deletions docs/v0.4/zh/user-guide/operations/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -410,10 +410,10 @@ server_addr = "127.0.0.1:3002"
# Etcd server addresses, "127.0.0.1:2379" by default.
store_addr = "127.0.0.1:2379"
# Datanode selector type.
# - "LeaseBased" (default value).
# - "LoadBased"
# - "lease_based" (default value).
# - "load_based"
# For details, please see "https://docs.greptime.com/developer-guide/meta/selector".
selector = "LeaseBased"
selector = "lease_based"
# Store data in memory, false by default.
use_memory_store = false
```
Expand Down

0 comments on commit 629cf98

Please sign in to comment.