mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 551874 - Figure out if we can avoid getting into partial synced state [r=mconnor]
For not-mobile clients, sync everything by specifying Infinity to keep existing math/logic working. Don't add a limit ?query if it's Infinity.
This commit is contained in:
parent
fd097ce9f9
commit
cf3fc65766
@ -75,7 +75,7 @@ Collection.prototype = {
|
||||
args.push('sort=' + this.sort);
|
||||
if (this.ids != null)
|
||||
args.push("ids=" + this.ids);
|
||||
if (this.limit > 0)
|
||||
if (this.limit > 0 && this.limit != Infinity)
|
||||
args.push("limit=" + this.limit);
|
||||
|
||||
this.uri.query = (args.length > 0)? '?' + args.join('&') : '';
|
||||
|
@ -406,7 +406,7 @@ SyncEngine.prototype = {
|
||||
this._log.trace("Downloading & applying server changes");
|
||||
|
||||
// Figure out how many total items to fetch this sync; do less on mobile
|
||||
let fetchNum = 1500;
|
||||
let fetchNum = Infinity;
|
||||
if (Svc.Prefs.get("client.type") == "mobile")
|
||||
fetchNum = 50;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user