From 3782d885da9640d61ee705781e84f3cff761ff55 Mon Sep 17 00:00:00 2001 From: Daniel Mai Date: Thu, 3 Dec 2020 21:48:55 -0800 Subject: [PATCH] chore(cmd/stream): Default to snappy for compression flag. (#1610) The DefaultOptions already has snappy set to the default, so the stream CLI tool aligns with that now. --- badger/cmd/stream.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/badger/cmd/stream.go b/badger/cmd/stream.go index da6ee875a..a7d3ba59c 100644 --- a/badger/cmd/stream.go +++ b/badger/cmd/stream.go @@ -51,7 +51,7 @@ func init() { streamCmd.Flags().IntVarP(&numVersions, "num_versions", "", 0, "Option to configure the maximum number of versions per key. "+ "Values <= 0 will be considered to have the max number of versions.") - streamCmd.Flags().Uint32VarP(&compressionType, "compression", "", 0, + streamCmd.Flags().Uint32VarP(&compressionType, "compression", "", 1, "Option to configure the compression type in output DB. "+ "0 to disable, 1 for Snappy, and 2 for ZSTD.") streamCmd.Flags().StringVarP(&keyPath, "encryption-key-file", "e", "",