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

Issue 3020026: AU: Fix bug in impl of Johnson's circuit finding algorithm. (Closed)

Created:
10 years, 5 months ago by adlr
Modified:
9 years ago
Reviewers:
petkov
CC:
chromium-os-reviews_chromium.org
Base URL:
ssh://git@chromiumos-git/update_engine.git
Visibility:
Public.

Description

AU: Fix bug in impl of Johnson's circuit finding algorithm. The original paper at http://dutta.csc.ncsu.edu/csc791_spring07/wrap/circuits_johnson.pdf is correct in the algorithm description. I made a mistake when translating it from pseudo code to C++. This CL corrects that mistake. BUG=chromium-os:5043 TEST=unittest, tested building and applying an update that exposed this issue

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -1 line) Patch
M cycle_breaker.cc View 1 chunk +5 lines, -1 line 0 comments Download
M cycle_breaker_unittest.cc View 1 chunk +27 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
adlr
10 years, 5 months ago (2010-07-23 01:18:24 UTC) #1
petkov
10 years, 5 months ago (2010-07-23 06:18:46 UTC) #2
I haven't followed the development so it's difficult to jump in. I'll try to
read the paper in my spare time :-)

AFAICT, LGTM. It seems that if the code was broken to start with, this change is
not going to make it any worse.

Powered by Google App Engine
This is Rietveld 408576698