]> git.saurik.com Git - redis.git/commitdiff
disable LZF compression since it's not able to load the DB for now, the load part...
authorantirez <antirez@gmail.com>
Thu, 2 Apr 2009 08:02:06 +0000 (10:02 +0200)
committerantirez <antirez@gmail.com>
Thu, 2 Apr 2009 08:02:06 +0000 (10:02 +0200)
redis.c

diff --git a/redis.c b/redis.c
index 0ea87cbd395d20ffb9507b916c3c396d1b3e7553..118e5bc9861552c30fc357ecd100eda732e49511 100644 (file)
--- a/redis.c
+++ b/redis.c
@@ -1691,7 +1691,7 @@ static int rdbSaveStringObject(FILE *fp, robj *obj) {
 
     /* Try LZF compression - under 20 bytes it's unable to compress even
      * aaaaaaaaaaaaaaaaaa so to try is just useful to make the CPU hot */
-    if (len > 20) {
+    if (0 && len > 20) {
         int retval;
 
         retval = rdbSaveLzfStringObject(fp,obj);