]> git.saurik.com Git - redis.git/blobdiff - redis.c
disable LZF compression since it's not able to load the DB for now, the load part...
[redis.git] / redis.c
diff --git a/redis.c b/redis.c
index f91616157df99fb3528b9141d805bb0b03a838e0..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);
@@ -2009,7 +2009,7 @@ eoferr: /* unexpected end of file is handled here with a fatal exit */
 /*================================== Commands =============================== */
 
 static void authCommand(redisClient *c) {
-    if (!strcmp(c->argv[1]->ptr, server.requirepass)) {
+    if (!server.requirepass || !strcmp(c->argv[1]->ptr, server.requirepass)) {
       c->authenticated = 1;
       addReply(c,shared.ok);
     } else {