From bfb4b920df671ba074b016b62baa518a9d97f623 Mon Sep 17 00:00:00 2001 From: Sayan Nandan Date: Fri, 13 Nov 2020 11:03:31 +0530 Subject: [PATCH] Bump up version and add changelog entry Signed-off-by: Sayan Nandan --- CHANGELOG.md | 28 ++++++++++++++++++++++++++++ Cargo.lock | 8 ++++---- cli/Cargo.toml | 2 +- cli/src/cli.yml | 2 +- cli/src/main.rs | 2 +- libtdb/Cargo.toml | 2 +- server/Cargo.toml | 2 +- server/src/cli.yml | 2 +- server/src/main.rs | 2 +- tdb-bench/Cargo.toml | 2 +- tdb-bench/src/cli.yml | 2 +- 11 files changed, 41 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d723f61a..78dc426a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,34 @@ All changes in this project will be noted in this file. +## Version 0.5.0 + +> This release introduces breaking changes! + +* Command line configuration added to `tdb` +* ⚠ Positional arguments in `tsh` and `tdb-bench` have been removed +* `MKSNAP` now has an _enhanced version_ which enables snapshots to be created even if they're disabled on the server side +* If `BGSAVE` fails, no more writes will be accepted on the server side. All commands that try to modify data will return an internal server error +* `tdb-bench` now provides JSON output with the `--json` flag +* The `Dockerfile` was fixed to use command line arguments instead of the configuration file which caused problems +* The `enabled` key under the `snapshots` key in the configuration file has been removed + +### Upgrading + +* Users who ran `tsh` like `tsh 172.17.0.1 2003` will now need to run: + +``` shell +tsh -h 172.17.0.1 -p 2003 +``` + +* Users who ran `tdb-bench` like `tdb-bench 10 100000 4` will now need to run: + +``` shell +tdb-bench -c 10 -q 100000 -s 4 +``` + +* To enable snapshots, you just have to add the key: there is no need for the `enabled` key. To disable snapshots, you just have to omit the `snapshot` key (block) from your configuration file + ## Version 0.4.5 [2020-10-29] > No breaking changes diff --git a/Cargo.lock b/Cargo.lock index 0cb35a45..9852b8ec 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -223,7 +223,7 @@ checksum = "a9f8082297d534141b30c8d39e9b1773713ab50fdbe4ff30f750d063b3bfd701" [[package]] name = "libtdb" -version = "0.4.5" +version = "0.5.0-alpha.2" dependencies = [ "bytes", "lazy_static", @@ -532,7 +532,7 @@ dependencies = [ [[package]] name = "tdb" -version = "0.4.5" +version = "0.5.0-alpha.2" dependencies = [ "bincode", "bytes", @@ -554,7 +554,7 @@ dependencies = [ [[package]] name = "tdb-bench" -version = "0.4.5" +version = "0.5.0-alpha.2" dependencies = [ "clap", "devtimer", @@ -656,7 +656,7 @@ dependencies = [ [[package]] name = "tsh" -version = "0.4.5" +version = "0.5.0-alpha.2" dependencies = [ "bytes", "clap", diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 32ac558a..751dd98e 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tsh" -version = "0.4.5" +version = "0.5.0-alpha.2" authors = ["Sayan Nandan "] edition = "2018" diff --git a/cli/src/cli.yml b/cli/src/cli.yml index 591b607d..07c30cde 100644 --- a/cli/src/cli.yml +++ b/cli/src/cli.yml @@ -20,7 +20,7 @@ # name: TerrabaseDB Shell -version: 0.4.5 +version: 0.5.0-alpha.2 author: Sayan N. about: The TerrabaseDB Shell (tsh) args: diff --git a/cli/src/main.rs b/cli/src/main.rs index f64b3eb9..1ccef168 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -22,7 +22,7 @@ mod argparse; mod protocol; use tokio; -const MSG_WELCOME: &'static str = "TerrabaseDB v0.4.5"; +const MSG_WELCOME: &'static str = "TerrabaseDB v0.5.0-alpha.2"; #[tokio::main] async fn main() { diff --git a/libtdb/Cargo.toml b/libtdb/Cargo.toml index f2c72739..93deeb8c 100644 --- a/libtdb/Cargo.toml +++ b/libtdb/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "libtdb" -version = "0.4.5" +version = "0.5.0-alpha.2" authors = ["Sayan Nandan "] edition = "2018" diff --git a/server/Cargo.toml b/server/Cargo.toml index 4a16f52b..d175e118 100644 --- a/server/Cargo.toml +++ b/server/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tdb" -version = "0.4.5" +version = "0.5.0-alpha.2" authors = ["Sayan Nandan "] edition = "2018" diff --git a/server/src/cli.yml b/server/src/cli.yml index ad2d9a9a..d418ebba 100644 --- a/server/src/cli.yml +++ b/server/src/cli.yml @@ -20,7 +20,7 @@ # name: TerrabaseDB Server -version: 0.4.5 +version: 0.5.0-alpha.2 author: Sayan N. about: The TerrabaseDB Database server args: diff --git a/server/src/main.rs b/server/src/main.rs index 024a0c5f..83ed37f6 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -54,7 +54,7 @@ use jemallocator::Jemalloc; static GLOBAL: Jemalloc = Jemalloc; /// The version text -static MSG: &'static str = "TerrabaseDB v0.4.5 | https://github.com/terrabasedb/terrabase"; +static MSG: &'static str = "TerrabaseDB v0.5.0-alpha.2 | https://github.com/terrabasedb/terrabase"; /// The terminal art for `!noart` configurations static TEXT: &'static str = " _______ _ _____ ____ diff --git a/tdb-bench/Cargo.toml b/tdb-bench/Cargo.toml index 309ce1a5..b6f8ddb2 100644 --- a/tdb-bench/Cargo.toml +++ b/tdb-bench/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tdb-bench" -version = "0.4.5" +version = "0.5.0-alpha.2" authors = ["Sayan Nandan "] edition = "2018" diff --git a/tdb-bench/src/cli.yml b/tdb-bench/src/cli.yml index 283d01ed..8bce0bd6 100644 --- a/tdb-bench/src/cli.yml +++ b/tdb-bench/src/cli.yml @@ -20,7 +20,7 @@ # name: TerrabaseDB Benchmark Tool -version: 0.4.5 +version: 0.5.0-alpha.2 author: Sayan N. about: | The TerrabaseDB benchmark tool can be used to benchmark TerrabaseDB installations.