Closed Bug 984740 Opened 12 years ago Closed 12 years ago

When calling notifyChange, don't request an upload sync if the caller is Sync

Categories

(Firefox for Android Graveyard :: Data Providers, defect)

All
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 31

People

(Reporter: rnewman, Assigned: rnewman)

References

Details

Attachments

(1 file)

No description provided.
Summary: When calling notifyChange, don't request an upload sync if the caller is sync → When calling notifyChange, don't request an upload sync if the caller is Sync
Comment on attachment 8392678 [details] [diff] [review] When calling notifyChange, don't request an upload sync if the caller is Sync. Review of attachment 8392678 [details] [diff] [review]: ----------------------------------------------------------------- A trivial -- if repetitive -- fix. isCallerSync is copypasta'ed from TransactionalProvider, in the hope of future refactorings. I elected to use a descriptive final variable rather than inlining the call-with-not, because boolean arguments are the devil. I haven't tested this yet, but this should entirely eliminate the immediate double-bounce syncs that we've been seeing for two years.
Attachment #8392678 - Flags: review?(nalexander)
Comment on attachment 8392678 [details] [diff] [review] When calling notifyChange, don't request an upload sync if the caller is Sync. Review of attachment 8392678 [details] [diff] [review]: ----------------------------------------------------------------- lgtm. Consider factoring out a local |maybeNotifyChange(url)| that does the Sync check? Hard to prevent future callers missing that and instead calling the ContentResolver's |notifyChange|.
Attachment #8392678 - Flags: review?(nalexander) → review+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 31
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: