Merge lp:~thumper/launchpad/revision-karma-fix into lp:launchpad
Proposed by
Tim Penhey
on 2010-01-06
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Merged at revision: | not available | ||||
| Proposed branch: | lp:~thumper/launchpad/revision-karma-fix | ||||
| Merge into: | lp:launchpad | ||||
| Diff against target: |
37 lines (+13/-7) 1 file modified
lib/lp/code/scripts/revisionkarma.py (+13/-7) |
||||
| To merge this branch: | bzr merge lp:~thumper/launchpad/revision-karma-fix | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Michael Hudson-Doyle | 2010-01-06 | Approve on 2010-01-06 | |
|
Review via email:
|
|||
Commit Message
Break out of the loop if karma is ever not allocated.
To post a comment you must log in.
| Tim Penhey (thumper) wrote : | # |
| Michael Hudson-Doyle (mwhudson) wrote : | # |
I guess you could even say logger.critical(), but it looks fine.
review:
Approve

The count added before is too inefficient so removed it.
Changed the looping logic, and stop if we ever fail to allocate karma as it will infinite-loop otherwise.
If it does die, it gives us the revision_id from which to start debugging.