[ostree] deltas: Do not traverse all objects, only both commits



commit 97fbd872ae50b33e33284792922bf09693575235
Author: Colin Walters <walters verbum org>
Date:   Tue Jan 13 21:32:02 2015 -0500

    deltas: Do not traverse all objects, only both commits
    
    That's the way they were designed.  We really don't want to include
    all intervening objects.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=721799

 .../ostree-repo-static-delta-compilation.c         |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libostree/ostree-repo-static-delta-compilation.c 
b/src/libostree/ostree-repo-static-delta-compilation.c
index 96c6324..5aca367 100644
--- a/src/libostree/ostree-repo-static-delta-compilation.c
+++ b/src/libostree/ostree-repo-static-delta-compilation.c
@@ -231,11 +231,11 @@ generate_delta_lowlatency (OstreeRepo                       *repo,
       g_hash_table_add (modified_content_objects, objname);
     }
 
-  if (!ostree_repo_traverse_commit (repo, from, -1, &from_reachable_objects,
+  if (!ostree_repo_traverse_commit (repo, from, 0, &from_reachable_objects,
                                     cancellable, error))
     goto out;
 
-  if (!ostree_repo_traverse_commit (repo, to, -1, &to_reachable_objects,
+  if (!ostree_repo_traverse_commit (repo, to, 0, &to_reachable_objects,
                                     cancellable, error))
     goto out;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]