Closed Bug 1253482 Opened 8 years ago Closed 8 years ago

Make sure that remote deleted records are always acknowledged

Categories

(Firefox for iOS :: Sync, defect)

All
iOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
fxios-v3.0 --- fixed
fxios-v4.0 --- fixed

People

(Reporter: rnewman, Assigned: rnewman)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

48 bytes, text/x-github-pull-request
nalexander
: review+
Details | Review
Before fixing Bug 1253458, some local deletions ended up in the buffer:

sqlite> select guid, type, is_deleted, server_modified from bookmarksBuffer;
guid          type        is_deleted  server_modified
------------  ----------  ----------  ---------------
EK3lcNd0sUFN  1           1           1457049548720
KO40n6dkKEOO  1           1           1457049548720
87zjNtVGPtEp  1           1           1457049816420
1WJIi9EjQErp  1           1           1457050163160


Those changes seem to stick around after a sync. This is a great opportunity to make sure that remote deletions that are no-ops are dropped from the buffer.

The consequence of not doing so: our short-circuiting code looks for empty buffer + empty local. In this case the buffer isn't empty, so we'll do a three-way merge every time we sync.
Attached file Pull req.
Stack 'em high.

The thinking here is explained in the comment. I'm actually quite pleased by each of these bugs: they're all safe, self-recovering failure modes.
Attachment #8726563 - Flags: review?(nalexander)
Attachment #8726563 - Flags: review?(nalexander) → review+
7259073
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Whiteboard: [needsuplift]
Target Milestone: --- → 4.0
v3.x 93d711d
Whiteboard: [needsuplift]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: