deltas: Make min-fallback-size 0 actually disable fallbacks
authorAlexander Larsson <alexl@redhat.com>
Fri, 16 Oct 2015 09:03:53 +0000 (11:03 +0200)
committerAlexander Larsson <alexl@redhat.com>
Tue, 10 Nov 2015 07:56:14 +0000 (08:56 +0100)
This is what the docs specify.

src/libostree/ostree-repo-static-delta-compilation.c

index 3fe856b2ab1e0c245cee054e9d526b0f5b56eda7..d327d26fbec5f6d72535c99e3e5ec2c1cf6703f7 100644 (file)
@@ -1085,7 +1085,7 @@ generate_delta_lowlatency (OstreeRepo                       *repo,
                                            NULL, &uncompressed_size,
                                            cancellable, error))
         goto out;
-      if (builder->min_fallback_size_bytes >= 0 &&
+      if (builder->min_fallback_size_bytes > 0 &&
           uncompressed_size > builder->min_fallback_size_bytes)
         fallback = TRUE;