Bug 578825 - sync should only sort on mobile clients, r=Mardak

This commit is contained in:
Mike Connor 2010-07-14 18:18:24 -04:00
Родитель 9dc70679d2
Коммит b9854306a3
1 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -448,13 +448,14 @@ SyncEngine.prototype = {
// 50 is hardcoded here because of URL length restrictions.
// (GUIDs can be up to 64 chars long)
let fetchNum = Infinity;
if (Svc.Prefs.get("client.type") == "mobile")
fetchNum = 50;
let newitems = new Collection(this.engineURL, this._recordObj);
if (Svc.Prefs.get("client.type") == "mobile") {
fetchNum = 50;
newitems.sort = "index";
}
newitems.newer = this.lastSync;
newitems.full = true;
newitems.sort = "index";
newitems.limit = fetchNum;
let count = {applied: 0, reconciled: 0};