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

Issue 10947039: Removed safe worker calculation from SyncScheduler. (Closed)

Created:
8 years, 3 months ago by vishwath
Modified:
8 years, 3 months ago
Reviewers:
rlarocque
CC:
chromium-reviews, Raghu Simha, haitaol1, akalin, tim (not reviewing)
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Removed safe worker calculation from SyncScheduler. Removed the calculation of restricted_workers from BuildModelSafeParams and updated the SyncSession constructor to no longer require a workers parameter. These changes are in line with bug 133030 and the change to model changing commands so that they no longer post to unused workers. BUG=133030 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=157852

Patch Set 1 #

Total comments: 2

Patch Set 2 : Undid changes from unrelated patch #

Patch Set 3 : Reintroduced workers param to the SyncSession constructor. #

Total comments: 1

Patch Set 4 : Removed variable active_groups that was no longer needed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -22 lines) Patch
M sync/engine/sync_scheduler_impl.cc View 1 2 3 4 chunks +5 lines, -22 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
vishwath
8 years, 3 months ago (2012-09-19 18:52:43 UTC) #1
rlarocque
http://codereview.chromium.org/10947039/diff/1/sync/syncable/directory.cc File sync/syncable/directory.cc (right): http://codereview.chromium.org/10947039/diff/1/sync/syncable/directory.cc#newcode151 sync/syncable/directory.cc:151: cryptographer_(cryptographer) { This change doesn't belong in this patch.
8 years, 3 months ago (2012-09-19 20:15:33 UTC) #2
vishwath
Undid the change to directory.cc. Noogler error with the git workflow, it shouldn't happen again.
8 years, 3 months ago (2012-09-19 20:31:17 UTC) #3
rlarocque
https://codereview.chromium.org/10947039/diff/1/sync/sessions/sync_session.cc File sync/sessions/sync_session.cc (left): https://codereview.chromium.org/10947039/diff/1/sync/sessions/sync_session.cc#oldcode78 sync/sessions/sync_session.cc:78: workers_(workers), What will be the effect of sync sessions ...
8 years, 3 months ago (2012-09-19 20:39:21 UTC) #4
vishwath
Based on my understanding of the code, it seems like the only use for the ...
8 years, 3 months ago (2012-09-19 20:48:02 UTC) #5
rlarocque
On 2012/09/19 20:48:02, vishwath wrote: > Based on my understanding of the code, it seems ...
8 years, 3 months ago (2012-09-19 20:59:02 UTC) #6
vishwath
Changed patch to retain workers param in the SyncSession constructor, and removed just the unneeded ...
8 years, 3 months ago (2012-09-20 00:02:19 UTC) #7
rlarocque
That looks much better. https://codereview.chromium.org/10947039/diff/5002/sync/engine/sync_scheduler_impl.cc File sync/engine/sync_scheduler_impl.cc (right): https://codereview.chromium.org/10947039/diff/5002/sync/engine/sync_scheduler_impl.cc#newcode318 sync/engine/sync_scheduler_impl.cc:318: active_groups.insert(group); Can you remove active_groups?
8 years, 3 months ago (2012-09-20 00:41:24 UTC) #8
vishwath
Removed active_groups from BuildModelSafeParams()
8 years, 3 months ago (2012-09-20 16:32:24 UTC) #9
rlarocque
LGTM. I've started a few trybots.
8 years, 3 months ago (2012-09-20 17:15:35 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vishwath@google.com/10947039/12001
8 years, 3 months ago (2012-09-20 19:08:30 UTC) #11
commit-bot: I haz the power
8 years, 3 months ago (2012-09-20 21:53:36 UTC) #12
Change committed as 157852

Powered by Google App Engine
This is Rietveld 408576698