content/local: consistent handling of data and locks

The locks now retry on the backend side to prevent clients from having
to round trip on locks that might be momentarily held. This exposed some
timing errors in the updated_at fields for content ingest, so we've had
to move that to a separate file to export the monotonic go runtime
timestamps.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
Stephen J Day
2017-11-03 16:42:55 -07:00
committed by Michael Crosby
parent f4fdb940ed
commit 3e5e2ecc0a
5 changed files with 88 additions and 28 deletions

View File

@@ -8,7 +8,6 @@ import (
)
// Handles locking references
// TODO: use boltdb for lock status
var (
// locks lets us lock in process