Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Issue 3997007: AU: fix delta generation when running out of scratch. (Closed)

Created:
10 years, 2 months ago by adlr
Modified:
10 years, 2 months ago
Reviewers:
petkov
CC:
chromium-os-reviews_chromium.org, petkov, adlr
Visibility:
Public.

Description

AU: fix delta generation when running out of scratch. When running out of scratch, deltas were incorrectly generated. The issue is that cuts used to be processed in arbitrary order, so sometimes a cut would be processed (thus having temp blocks allocated), and later another cut would be impossible to process, and then the node in question would be converted to a REPLACE operation. That's fine, but we weren't deleting the graph nodes that moved data aside. Thus, we would generate a delta w/ extra ops that were moving data around(!!). This change causes us to prcocess all cuts for a node together, so they all succeed or fail. BUG=8063 TEST=unittests, generated/applied delta locally Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=4ba850d

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+326 lines, -117 lines) Patch
M delta_diff_generator.h View 1 chunk +1 line, -1 line 0 comments Download
M delta_diff_generator.cc View 7 chunks +210 lines, -116 lines 3 comments Download
M delta_diff_generator_unittest.cc View 2 chunks +115 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
adlr
10 years, 2 months ago (2010-10-23 02:29:54 UTC) #1
petkov
LGTM w/ a few comments and suggestions. http://codereview.chromium.org/3997007/diff/1/2 File delta_diff_generator.cc (right): http://codereview.chromium.org/3997007/diff/1/2#newcode927 delta_diff_generator.cc:927: bool ConvertCutsToFull( ...
10 years, 2 months ago (2010-10-23 04:52:52 UTC) #2
petkov
10 years, 2 months ago (2010-10-25 16:53:44 UTC) #3
Btw, still LGTM but we should consider breaking up delta_diff_generator into
smaller classes -- for testability and readability purposes.

Powered by Google App Engine
This is Rietveld 408576698