Skip to content

Commit

Permalink
Fix problem with fastlz compression.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco van Wieringen committed Feb 17, 2015
1 parent 6a8dfeb commit a30603d
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/filed/restore.c
Expand Up @@ -30,7 +30,7 @@
#include "filed.h"
#include "ch.h"

#ifdef HAVE_DARWIN_OS
#if defined(HAVE_DARWIN_OS)
#include <sys/attr.h>
const bool have_darwin_os = true;
#else
Expand All @@ -49,7 +49,7 @@ const bool have_acl = true;
const bool have_acl = false;
#endif

#ifdef HAVE_SHA2
#if defined(HAVE_SHA2)
const bool have_sha2 = true;
#else
const bool have_sha2 = false;
Expand All @@ -75,11 +75,16 @@ const bool have_libz = true;
#else
const bool have_libz = false;
#endif
#ifdef HAVE_LZO
#if defined(HAVE_LZO)
const bool have_lzo = true;
#else
const bool have_lzo = false;
#endif
#if defined(HAVE_FASTLZ)
const bool have_fastlz = true;
#else
const bool have_fastlz = false;
#endif

static void free_signature(r_ctx &rctx);
static bool close_previous_stream(JCR *jcr, r_ctx &rctx);
Expand Down Expand Up @@ -387,7 +392,7 @@ void do_restore(JCR *jcr)
}
jcr->buf_size = sd->msglen;

if (have_libz || have_lzo) {
if (have_libz || have_lzo || have_fastlz) {
if (!adjust_decompression_buffers(jcr)) {
goto bail_out;
}
Expand Down

0 comments on commit a30603d

Please sign in to comment.