mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 02:15:45 +02:00
Support lz4 compression (#545)
Signed-off-by: adi_holden <adi@dragonflydb.io>
This commit is contained in:
parent
2a67dc307e
commit
ae9e3c45d9
5 changed files with 156 additions and 59 deletions
|
@ -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"}));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue