Merge lp:~ken-vandine/content-hub/lp1326535 into lp:content-hub

Proposed by Ken VanDine
Status: Merged
Approved by: Michael Sheldon
Approved revision: 111
Merged at revision: 112
Proposed branch: lp:~ken-vandine/content-hub/lp1326535
Merge into: lp:content-hub
Diff against target: 11 lines (+2/-0)
1 file modified
src/com/ubuntu/content/detail/service.cpp (+2/-0)
To merge this branch: bzr merge lp:~ken-vandine/content-hub/lp1326535
Reviewer Review Type Date Requested Status
Michael Sheldon (community) Approve
PS Jenkins bot continuous-integration Approve
Review via email: mp+222549@code.launchpad.net

Commit message

Don't abort downloads that haven't been charged yet when a new transfer
is created. This will leave multiple transfers from downloads which haven't
been charged remain in active_transfers until they have been
charged. (LP: #1326535)

Having multiple downloaded transfers in active_transfers means when the
destination starts or resumes, then all the completed downloads will get charged
which will send multiple signals to the destination.

Description of the change

Don't abort downloads that haven't been charged yet when a new transfer
is created. This will leave multiple transfers from downloads which haven't
been charged remain in active_transfers until they have been
charged. (LP: #1326535)

Having multiple downloaded transfers in active_transfers means when the
destination starts or resumes, then all the completed downloads will get charged
which will send multiple signals to the destination.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Ken VanDine (ken-vandine) wrote :

Are there any related MPs required for this MP to build/function as expected? Please list.

 * No

Is your branch in sync with latest trunk (e.g. bzr pull lp:trunk -> no changes)

 * Yes

Did you perform an exploratory manual test run of your code change and any related functionality on device or emulator?

 * Yes

Did you successfully run all tests found in your component's Test Plan (https://wiki.ubuntu.com/Process/Merges/TestPlan/content-hub) on device or emulator?

 * Yes

If you changed the UI, was the change specified/approved by design?

 * No change

If you changed the packaging (debian), did you subscribe a core-dev to this MP?

 * No change

Revision history for this message
Michael Sheldon (michael-sheldon) wrote :

Did you perform an exploratory manual test run of the code change and any related functionality on device or emulator?

 * Yes

Did CI run pass? If not, please explain why.

 * Yes

Have you checked that submitter has accurately filled out the submitter checklist and has taken no shortcut?

 * Yes

Revision history for this message
Michael Sheldon (michael-sheldon) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/com/ubuntu/content/detail/service.cpp'
2--- src/com/ubuntu/content/detail/service.cpp 2014-06-04 16:49:58 +0000
3+++ src/com/ubuntu/content/detail/service.cpp 2014-06-09 20:00:34 +0000
4@@ -182,6 +182,8 @@
5
6 return (st != cuc::Transfer::finalized
7 && st != cuc::Transfer::collected
8+ && st != cuc::Transfer::downloaded
9+ && st != cuc::Transfer::downloading
10 && st != cuc::Transfer::aborted);
11 }
12

Subscribers

People subscribed via source and target branches