[gpodder-devel] my.gpodder episode sync design problem: "since" values

  • From: neal at walfield.org (Neal H. Walfield)
  • Date: Fri, 01 Jul 2011 15:29:42 +0200

At Fri, 1 Jul 2011 15:35:52 +0300,
Dov Feldstern wrote:
> 3. n900 at 9:18 : connects to network, stored actions are uploaded; so
> the action from step (1) is now uploaded, *but its timestamp is still
> "9:14"*! Since "9:14" is earlier than the new "since" value ("9:16"),
> the episode action will never get synced back to the desktop...

> So, I think that the "timestamp" stored with actions is *not* the
> value which should be used for purposes of comparing with "since"
> values and syncing; rather, an "upload-timestamp" should be stored
> server-side, which would serve for this purpose.

Why not use Lamport timestamps to do the ordering?

  http://en.wikipedia.org/wiki/Lamport_timestamps

Neal

Other related posts: