Support lz4 compression (#545)

Signed-off-by: adi_holden <adi@dragonflydb.io>
This commit is contained in:
adiholden 2022-12-08 09:41:55 +02:00 committed by GitHub
parent 2a67dc307e
commit ae9e3c45d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 156 additions and 59 deletions

View file

@ -148,7 +148,7 @@ TEST_F(RdbTest, Stream) {
TEST_F(RdbTest, ComressionModeSaveDragonflyAndReload) {
Run({"debug", "populate", "500000"});
for (int i = 0; i <= 2; ++i) {
for (int i = 0; i <= 3; ++i) {
SetFlag(&FLAGS_compression_mode, i);
RespExpr resp = Run({"save", "df"});
ASSERT_EQ(resp, "OK");
@ -156,6 +156,7 @@ TEST_F(RdbTest, ComressionModeSaveDragonflyAndReload) {
auto save_info = service_->server_family().GetLastSaveInfo();
resp = Run({"debug", "load", save_info->file_name});
ASSERT_EQ(resp, "OK");
ASSERT_EQ(500000, CheckedInt({"dbsize"}));
}
}